From 7db1fc75a97b1f463958a35aa76603d503a3cf56 Mon Sep 17 00:00:00 2001 From: Connor O'Connor Date: Fri, 3 Oct 2025 15:02:09 -0400 Subject: [PATCH] address lua warning where `id` could be `nil --- src/util/libbl.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/util/libbl.lua b/src/util/libbl.lua index 4a0d523..71a72dc 100644 --- a/src/util/libbl.lua +++ b/src/util/libbl.lua @@ -536,6 +536,9 @@ function bl.schedule(time, cb, ...) end function _bllua_schedule_callback(id) id = tonumber(id) + if id == nil then + error('_ts_schedule_callback: invalid id') + end local sch = bl._scheduleTable[id] if not sch then error('_ts_schedule_callback: no schedule with id '..id) end bl._scheduleTable[id] = nil