From 57454b527200c8cfd233dbfb7e27e45dc975c473 Mon Sep 17 00:00:00 2001 From: Alar of Daggerspine Date: Fri, 29 Apr 2016 12:48:31 +0200 Subject: [PATCH] Whenn called with no to be completed missions hook was set 2 times --- MissionControl.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/MissionControl.lua b/MissionControl.lua index c03c756..8d8e7ec 100644 --- a/MissionControl.lua +++ b/MissionControl.lua @@ -256,6 +256,7 @@ function module:GMC_OnClick_Run(this,button) do local elapsed=0 local co=coroutine.wrap(self.GMCRunMission) + self:Unhook(GMC.runButton,'OnUpdate') self:RawHookScript(GMC.runButton,'OnUpdate',function(this,ts) elapsed=elapsed+ts if (elapsed>0.25) then -- 1.7.9.5