mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix nil spectator Draw3D event handler index
Minor oversight introduced in pabst's fix for #2989, the icon handler is a mission event handler that isn't self terminating so the index needs to be preserved until after it is removed via `removeMissionEventHandler`. It is safe to let the `onUnload` event take care of that (and preferable so that icons disappear while temporarily closed).
This commit is contained in:
parent
65e981373b
commit
d870a1f448
@ -102,7 +102,7 @@ if (_set) then {
|
|||||||
while {dialog} do {
|
while {dialog} do {
|
||||||
closeDialog 0;
|
closeDialog 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Kill the display
|
// Kill the display
|
||||||
(GETUVAR(GVAR(interface),displayNull)) closeDisplay 0;
|
(GETUVAR(GVAR(interface),displayNull)) closeDisplay 0;
|
||||||
|
|
||||||
@ -131,7 +131,6 @@ if (_set) then {
|
|||||||
//Kill these PFEH handlers now because the PFEH can run before the `onunload` event is handled
|
//Kill these PFEH handlers now because the PFEH can run before the `onunload` event is handled
|
||||||
GVAR(camHandler) = nil;
|
GVAR(camHandler) = nil;
|
||||||
GVAR(compHandler) = nil;
|
GVAR(compHandler) = nil;
|
||||||
GVAR(iconHandler) = nil;
|
|
||||||
GVAR(toolHandler) = nil;
|
GVAR(toolHandler) = nil;
|
||||||
|
|
||||||
// Cleanup display variables
|
// Cleanup display variables
|
||||||
|
Loading…
Reference in New Issue
Block a user