mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
- Bugfix when enemy plane has crashed, AttackerDetection is not existing anymore.
This commit is contained in:
parent
96a904c077
commit
c716ba16b3
@ -4292,7 +4292,7 @@ do -- AI_A2G_DISPATCHER
|
||||
|
||||
for DefenseQueueID, DefenseQueueItem in pairs( self.DefenseQueue ) do
|
||||
local DefenseQueueItem = DefenseQueueItem -- #AI_A2G_DISPATCHER.DefenseQueueItem
|
||||
if DefenseQueueItem.AttackerDetection.Index == DetectedItem.Index then
|
||||
if DefenseQueueItem.AttackerDetection and DefenseQueueItem.AttackerDetection.Index and DefenseQueueItem.AttackerDetection.Index == DetectedItem.Index then
|
||||
DefenseTotal = DefenseTotal + 1
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user