Compiles with 5.2, but doesn't work.
This commit is contained in:
@@ -323,7 +323,7 @@ void World::run_scheduled_threads(int64_t clk) {
|
||||
// Resume the coroutine.
|
||||
lua_State *CO = LS.ckthread(thread);
|
||||
int top = lua_gettop(CO);
|
||||
int status = lua_resume(CO, (top > 0) ? (top - 1) : 0);
|
||||
int status = lua_resume(CO, nullptr, (top > 0) ? (top - 1) : 0);
|
||||
|
||||
// Three possible outcomes: finished, yielded, or errored.
|
||||
if (status == LUA_YIELD) {
|
||||
|
||||
Reference in New Issue
Block a user