diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-06-07 11:46:25 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-06-07 11:46:25 +0200 |
commit | ee32d4281a5e59ce81d7f38f86a49fa8ff64d2c3 (patch) | |
tree | 68c0d74ac40c6ee098abf606e3d660a862acf04f /src/cancel.cpp | |
parent | 35d7a6bb691d7e0564cda324b3d724caf4901545 (diff) | |
download | lanes-ee32d4281a5e59ce81d7f38f86a49fa8ff64d2c3.tar.gz lanes-ee32d4281a5e59ce81d7f38f86a49fa8ff64d2c3.tar.bz2 lanes-ee32d4281a5e59ce81d7f38f86a49fa8ff64d2c3.zip |
Boyscouting some luaG_ functions
Diffstat (limited to 'src/cancel.cpp')
-rw-r--r-- | src/cancel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cancel.cpp b/src/cancel.cpp index 8845e9d..4205d1f 100644 --- a/src/cancel.cpp +++ b/src/cancel.cpp | |||
@@ -186,7 +186,7 @@ CancelOp which_cancel_op(std::string_view const& opString_) | |||
186 | [[nodiscard]] static CancelOp which_cancel_op(lua_State* L_, int idx_) | 186 | [[nodiscard]] static CancelOp which_cancel_op(lua_State* L_, int idx_) |
187 | { | 187 | { |
188 | if (luaG_type(L_, idx_) == LuaType::STRING) { | 188 | if (luaG_type(L_, idx_) == LuaType::STRING) { |
189 | std::string_view const _str{ luaG_tostringview(L_, idx_) }; | 189 | std::string_view const _str{ luaG_tostring(L_, idx_) }; |
190 | CancelOp _op{ which_cancel_op(_str) }; | 190 | CancelOp _op{ which_cancel_op(_str) }; |
191 | lua_remove(L_, idx_); // argument is processed, remove it | 191 | lua_remove(L_, idx_); // argument is processed, remove it |
192 | if (_op == CancelOp::Invalid) { | 192 | if (_op == CancelOp::Invalid) { |