KaukausInsurgency / ki-dcs

Kaukasus Insurgency
5 stars 2 forks source link

AICOM - DoTurn breaks if no ambush zones defined #192

Closed Igneous01 closed 6 years ago

Igneous01 commented 6 years ago

Code throws this error when attempting to do an ambush move, but no ambush zones are defined in config.

07858.973 INFO    SCRIPTING: AICOM.DoTurn ERROR : [string "C:\Users\david\Documents\GitHub\KI\DCSScripts\AICOM.lua"]:396: attempt to index local 'zone' (a nil value)