From e0e4279f20f3cffaeec9f43358de87089c8eb098 Mon Sep 17 00:00:00 2001 From: FullGas1 <51051389+FullGas1@users.noreply.github.com> Date: Sat, 29 Mar 2025 23:00:17 +0100 Subject: [PATCH] debug --- CTLD.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CTLD.lua b/CTLD.lua index fb9323b..7f9d0fd 100644 --- a/CTLD.lua +++ b/CTLD.lua @@ -8238,10 +8238,10 @@ function ctld.eventHandler:onEvent(event) if not mist.DBs.humansByName[unitName] then -- give a few milliseconds for MiST to handle the BIRTH event too ctld.logTrace("give MiST some time to handle the BIRTH event too") - timer.scheduleFunction(function() + timer.scheduleFunction(function(mistDBsHumansByName, t) ctld.logTrace("calling the 'processHumanPlayer' function in a timer") - processHumanPlayer(mist.DBs.humansByName) - end, nil, timer.getTime() + 0.5) + processHumanPlayer(mistDBsHumansByName) + end, {mist.DBs.humansByName}, timer.getTime() + 0.5) else ctld.logTrace("calling the 'processHumanPlayer' function immediately") processHumanPlayer(mist.DBs.humansByName)