Merge pull request #3099 from acemod/specFixScriptError

Kill Spectator PFEH when exiting spectator
This commit is contained in:
SilentSpike 2016-01-01 17:19:41 +00:00
commit 776f9352fe

View File

@ -127,6 +127,12 @@ if (_set) then {
GVAR(unitCamera) = nil;
GVAR(targetCamera) = nil;
//Kill these PFEH handlers now because the PFEH can run before the `onunload` event is handled
GVAR(camHandler) = nil;
GVAR(compHandler) = nil;
GVAR(iconHandler) = nil;
GVAR(toolHandler) = nil;
// Cleanup display variables
GVAR(ctrlKey) = nil;
GVAR(heldKeys) = nil;