aboutsummaryrefslogtreecommitdiff
path: root/src/cancel.cpp
diff options
context:
space:
mode:
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