mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Fixes #414
This commit is contained in:
parent
306ac64bd3
commit
86fd99f356
@ -1073,7 +1073,7 @@ end
|
|||||||
function SPAWN:SpawnFromUnit( HostUnit, SpawnIndex )
|
function SPAWN:SpawnFromUnit( HostUnit, SpawnIndex )
|
||||||
self:F( { self.SpawnTemplatePrefix, HostUnit, SpawnIndex } )
|
self:F( { self.SpawnTemplatePrefix, HostUnit, SpawnIndex } )
|
||||||
|
|
||||||
if HostUnit and HostUnit:IsAlive() then -- and HostUnit:getUnit(1):inAir() == false then
|
if HostUnit and HostUnit:IsAlive() ~= nil then -- and HostUnit:getUnit(1):inAir() == false then
|
||||||
return self:SpawnFromVec3( HostUnit:GetVec3(), SpawnIndex )
|
return self:SpawnFromVec3( HostUnit:GetVec3(), SpawnIndex )
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user