aboutsummaryrefslogtreecommitdiff
path: root/src/cancel.cpp
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-03-28 18:28:51 +0100
committerBenoit Germain <benoit.germain@ubisoft.com>2024-03-28 18:28:51 +0100
commit749b9ed927929c3492def9a241a5267394306551 (patch)
tree77988d14b087a8381924e36a7bc08ed8c41939d2 /src/cancel.cpp
parent5d365d54efef5dfd0dca814346bfee791eacab90 (diff)
downloadlanes-749b9ed927929c3492def9a241a5267394306551.tar.gz
lanes-749b9ed927929c3492def9a241a5267394306551.tar.bz2
lanes-749b9ed927929c3492def9a241a5267394306551.zip
C++ migration: improved UniqueKey interface
Diffstat (limited to 'src/cancel.cpp')
-rw-r--r--src/cancel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cancel.cpp b/src/cancel.cpp
index 8b8977b..0f7a6af 100644
--- a/src/cancel.cpp
+++ b/src/cancel.cpp
@@ -55,8 +55,8 @@ THE SOFTWARE.
55*/ 55*/
56static inline CancelRequest cancel_test(lua_State* L) 56static inline CancelRequest cancel_test(lua_State* L)
57{ 57{
58 Lane* const lane{ get_lane_from_registry(L) }; 58 Lane* const lane{ LANE_POINTER_REGKEY.readLightUserDataValue<Lane>(L) };
59 // 's' is nullptr for the original main state (and no-one can cancel that) 59 // 'lane' is nullptr for the original main state (and no-one can cancel that)
60 return lane ? lane->cancel_request : CancelRequest::None; 60 return lane ? lane->cancel_request : CancelRequest::None;
61} 61}
62 62