mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
common: fixed fnc_addLineToDebugDraw
This commit is contained in:
parent
8d1ee8c2c2
commit
05d209191c
@ -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;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user