mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Merge pull request #3099 from acemod/specFixScriptError
Kill Spectator PFEH when exiting spectator
This commit is contained in:
commit
776f9352fe
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user