mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
Fix Line 77390: attempt to index local 'zonecoord' (a nil value)
This commit is contained in:
parent
7eba1349ae
commit
0468bacc0b
@ -5981,6 +5981,7 @@ function CTLD:SmokeZoneNearBy(Unit, Flare)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
local zonecoord = zone:GetCoordinate()
|
local zonecoord = zone:GetCoordinate()
|
||||||
|
if zonecoord then
|
||||||
local active = CZone.active
|
local active = CZone.active
|
||||||
local color = CZone.color
|
local color = CZone.color
|
||||||
local distance = self:_GetDistance(zonecoord,unitcoord)
|
local distance = self:_GetDistance(zonecoord,unitcoord)
|
||||||
@ -5997,6 +5998,7 @@ function CTLD:SmokeZoneNearBy(Unit, Flare)
|
|||||||
self:_SendMessage(string.format("Roger, %s zone %s!",txt, zonename), 10, false, Group)
|
self:_SendMessage(string.format("Roger, %s zone %s!",txt, zonename), 10, false, Group)
|
||||||
smoked = true
|
smoked = true
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if not smoked then
|
if not smoked then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user