diff --git a/celestia/src/celestia/celx.cpp b/celestia/src/celestia/celx.cpp index a00b933..736f8b3 100644 --- a/celestia/src/celestia/celx.cpp +++ b/celestia/src/celestia/celx.cpp @@ -669,7 +669,10 @@ static int resumeLuaThread(lua_State *L, lua_State *co, int narg) //if (!lua_checkstack(co, narg)) // luaL_error(L, "too many arguments to resume"); lua_xmove(L, co, narg); -#if LUA_VERSION_NUM >= 502 +#if LUA_VERSION_NUM >= 504 + int nresults; + status = lua_resume(co, NULL, narg, &nresults); +#elif LUA_VERSION_NUM >= 502 status = lua_resume(co, NULL, narg); #else status = lua_resume(co, narg);