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 0dc5646..1cb4fd0 100644 --- a/src/universe.cpp +++ b/src/universe.cpp | |||
@@ -111,7 +111,7 @@ void Universe::callOnStateCreate(lua_State* const L_, lua_State* const from_, Lo | |||
111 | std::string_view const _stateType{ mode_ == LookupMode::LaneBody ? "lane" : "keeper" }; | 111 | std::string_view const _stateType{ mode_ == LookupMode::LaneBody ? "lane" : "keeper" }; |
112 | luaG_pushstring(L_, _stateType); // L_: on_state_create() "<type>" | 112 | luaG_pushstring(L_, _stateType); // L_: on_state_create() "<type>" |
113 | if (lua_pcall(L_, 1, 0, 0) != LUA_OK) { | 113 | if (lua_pcall(L_, 1, 0, 0) != LUA_OK) { |
114 | raise_luaL_error(from_, "%s failed: \"%s\"", kOnStateCreate.data(), lua_isstring(L_, -1) ? luaG_tostring(L_, -1).data() : luaG_typename(L_, -1).data()); | 114 | raise_luaL_error(from_, "%s failed in %s: \"%s\"", kOnStateCreate.data(), _stateType.data(), lua_isstring(L_, -1) ? luaG_tostring(L_, -1).data() : luaG_typename(L_, -1).data()); |
115 | } | 115 | } |
116 | STACK_CHECK(L_, 0); | 116 | STACK_CHECK(L_, 0); |
117 | } | 117 | } |