diff options
Diffstat (limited to 'src/universe.cpp')
-rw-r--r-- | src/universe.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/universe.cpp b/src/universe.cpp index bc309a2..3da0801 100644 --- a/src/universe.cpp +++ b/src/universe.cpp | |||
@@ -91,7 +91,7 @@ void Universe::callOnStateCreate(lua_State* const L_, lua_State* const from_, Lo | |||
91 | 91 | ||
92 | // C function: recreate a closure in the new state, bypassing the lookup scheme | 92 | // C function: recreate a closure in the new state, bypassing the lookup scheme |
93 | lua_pushcfunction(L_, std::get<lua_CFunction>(onStateCreateFunc)); // on_state_create() | 93 | lua_pushcfunction(L_, std::get<lua_CFunction>(onStateCreateFunc)); // on_state_create() |
94 | } else { // Lua function located in the config table, copied when we opened "lanes.core" | 94 | } else { // Lua function located in the config table, copied when we opened "lanes_core" |
95 | LUA_ASSERT(from_, std::holds_alternative<uintptr_t>(onStateCreateFunc)); | 95 | LUA_ASSERT(from_, std::holds_alternative<uintptr_t>(onStateCreateFunc)); |
96 | if (mode_ != LookupMode::LaneBody) { | 96 | if (mode_ != LookupMode::LaneBody) { |
97 | // if attempting to call in a keeper state, do nothing because the function doesn't exist there | 97 | // if attempting to call in a keeper state, do nothing because the function doesn't exist there |