arcemu/arcemu — Issue #83: Lua RegisterTimedEvent() crash
Author: Alexeng
Created: 2012-01-25 20:20:21+00:00
State: open

ArcEmu revision: 3c3824720e771762c00f5edc8f7ab79b5f022071
Host OS: Windows 7 Ultimate Service Pack 1 (64-bits)
Database used: WhyDB r157
Using scripts? Yes.
Detailed explanation: Whenever RegisterTimedEvent() is called with a function stored in a local table, the console prints "PANIC: unprotected error in call to Lua API (attempt to index a nil value)" and crashes.
This does not happen with a global function or a function stored in a global table, though a local function prints "[ERR] ..\..\..\code\src\scripts\src\LuaEngine\LUAEngine.cpp:92 report attempt to call a nil value."