Compiles with 5.2, but doesn't work.

This commit is contained in:
2021-02-28 15:05:45 -05:00
parent 4d3caf6376
commit 95e5a999b8
4 changed files with 38 additions and 48 deletions

View File

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