getn is deprecated as of lua 5.1... Updated instances of getn to use modern methods #4

Closed
Auios wants to merge 10 commits from Auios:fix-deprecated-use-of-getn into master
Showing only changes of commit 015f461d9e - Show all commits

View File

@@ -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