mission complete working with removing of command

This commit is contained in:
2024-09-25 20:17:46 +02:00
parent c26684d3ff
commit d747b2d79c
6 changed files with 119 additions and 26 deletions
+1 -1
View File
@@ -1608,7 +1608,7 @@ do
event.id == world.event.S_EVENT_EJECTION or
event.id == world.event.S_EVENT_UNIT_LOST then
local object = event.initiator
if object and OnUnitLostListeners[object:getName()] then
if object and object.getName and OnUnitLostListeners[object:getName()] then
for _, callable in pairs(OnUnitLostListeners[object:getName()]) do
local succ, err = pcall(function()
callable:OnUnitLost(object)