From 45d9a3a1a9dcf9b39ddc13c0ed14e7f6ac3ed0d0 Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Sun, 17 Sep 2017 16:42:29 -0500 Subject: [PATCH] Fix spectator onLoad (#5523) --- addons/spectator/ui.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/spectator/ui.hpp b/addons/spectator/ui.hpp index faee6d7748..f26572f6d5 100644 --- a/addons/spectator/ui.hpp +++ b/addons/spectator/ui.hpp @@ -18,7 +18,7 @@ class GVAR(display) { movingEnable = 0; closeOnMissionEnd = 1; - onLoad = QUOTE(SETUVAR(GVAR(display),_this select 0)); + onLoad = QUOTE(with uiNameSpace do {GVAR(display) = _this select 0};); onKeyDown = QUOTE(_this call FUNC(ui_handleKeyDown)); onKeyUp = QUOTE(_this call FUNC(ui_handleKeyUp));