fix bl.schedule errors

This commit is contained in:
Redo
2025-10-02 14:35:03 -05:00
parent de9992aa2c
commit fe9ee3cc2b
5 changed files with 9 additions and 3 deletions

View File

@@ -538,7 +538,7 @@ function _bllua_schedule_callback(id)
id = tonumber(id)
local sch = bl._scheduleTable[id]
if not sch then error('_ts_schedule_callback: no schedule with id '..id) end
bl._scheduleTable[sched_id] = nil
bl._scheduleTable[id] = nil
sch.callback(unpack(sch.args))
end