common: fixed fnc_addLineToDebugDraw

This commit is contained in:
Nicolás Badano 2015-01-25 01:05:19 -03:00
parent 8d1ee8c2c2
commit 05d209191c

View File

@ -29,7 +29,7 @@ if (count GVAR(debugLines) < 100) then {
if (isNil QGVAR(debugDrawHandler)) then {
GVAR(debugDrawHandler) = addMissionEventHandler ["Draw3D", {
if (count GVAR(debugLines) == 0) exitWith {
removeMissionEventHandler GVAR(debugDrawHandler);
removeMissionEventHandler ["Draw3D", GVAR(debugDrawHandler)];
GVAR(debugDrawHandler) = nil;
};