aboutsummaryrefslogtreecommitdiff
path: root/src/universe.cpp
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-06-26 11:01:01 +0200
committerBenoit Germain <benoit.germain@ubisoft.com>2024-06-26 11:01:01 +0200
commit57176e9b135b037fd33b8291d12416b9485b759b (patch)
treed716ce09d572f8ebf7272117928c7b6072dd7aff /src/universe.cpp
parent2c6898964400e6fa77b0e368f477b739fc155f90 (diff)
downloadlanes-57176e9b135b037fd33b8291d12416b9485b759b.tar.gz
lanes-57176e9b135b037fd33b8291d12416b9485b759b.tar.bz2
lanes-57176e9b135b037fd33b8291d12416b9485b759b.zip
Make lanes.gen stricter on base libraries
Diffstat (limited to 'src/universe.cpp')
-rw-r--r--src/universe.cpp2
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}