diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-06-10 14:51:17 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-06-10 14:51:17 +0200 |
commit | 3763be94cdd1a5cf26fec0f09784b18188fd3054 (patch) | |
tree | 3a0e6c1f915e06d51b578d113a759f7e57de875e /src/state.cpp | |
parent | 770e3c0c533a94631885a4d04d8c36a76d5c185e (diff) | |
download | lanes-3763be94cdd1a5cf26fec0f09784b18188fd3054.tar.gz lanes-3763be94cdd1a5cf26fec0f09784b18188fd3054.tar.bz2 lanes-3763be94cdd1a5cf26fec0f09784b18188fd3054.zip |
luaG_typename returns a std::string_view
Diffstat (limited to 'src/state.cpp')
-rw-r--r-- | src/state.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/state.cpp b/src/state.cpp index 77e1fd9..50981a6 100644 --- a/src/state.cpp +++ b/src/state.cpp | |||
@@ -185,7 +185,7 @@ namespace state { | |||
185 | std::string_view const _stateType{ mode_ == LookupMode::LaneBody ? "lane" : "keeper" }; | 185 | std::string_view const _stateType{ mode_ == LookupMode::LaneBody ? "lane" : "keeper" }; |
186 | std::ignore = luaG_pushstring(L_, _stateType); // L_: on_state_create() "<type>" | 186 | std::ignore = luaG_pushstring(L_, _stateType); // L_: on_state_create() "<type>" |
187 | if (lua_pcall(L_, 1, 0, 0) != LUA_OK) { | 187 | if (lua_pcall(L_, 1, 0, 0) != LUA_OK) { |
188 | raise_luaL_error(from_, "%s failed: \"%s\"", kOnStateCreate, lua_isstring(L_, -1) ? lua_tostring(L_, -1) : luaG_typename(L_, luaG_type(L_, -1))); | 188 | raise_luaL_error(from_, "%s failed: \"%s\"", kOnStateCreate, lua_isstring(L_, -1) ? lua_tostring(L_, -1) : luaG_typename(L_, -1).data()); |
189 | } | 189 | } |
190 | STACK_CHECK(L_, 0); | 190 | STACK_CHECK(L_, 0); |
191 | } | 191 | } |