aboutsummaryrefslogtreecommitdiff
path: root/src/lanes.cpp
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-10-24 14:53:09 +0200
committerBenoit Germain <benoit.germain@ubisoft.com>2024-10-24 14:53:09 +0200
commit4044e86ea4197535b70bc434634faf90cd2317d0 (patch)
tree522af1b44e3dda30ff66ed2245aad54ceeb7e1b2 /src/lanes.cpp
parent958ed4f1e29418e90f3dd3de6779e30e05f70448 (diff)
downloadlanes-4044e86ea4197535b70bc434634faf90cd2317d0.tar.gz
lanes-4044e86ea4197535b70bc434634faf90cd2317d0.tar.bz2
lanes-4044e86ea4197535b70bc434634faf90cd2317d0.zip
Strengthen more code with UserValueIndex
Diffstat (limited to 'src/lanes.cpp')
-rw-r--r--src/lanes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lanes.cpp b/src/lanes.cpp
index e545ca0..8c4ef61 100644
--- a/src/lanes.cpp
+++ b/src/lanes.cpp
@@ -350,7 +350,7 @@ LUAG_FUNC(lane_new)
350 } 350 }
351 STACK_CHECK(L, 2); 351 STACK_CHECK(L, 2);
352 // store the uservalue in the Lane full userdata 352 // store the uservalue in the Lane full userdata
353 lua_setiuservalue(L, StackIndex{ -2 }, 1); // L: ... lane 353 lua_setiuservalue(L, StackIndex{ -2 }, UserValueIndex{ 1 }); // L: ... lane
354 354
355 lua_State* const _L2{ lane->L }; 355 lua_State* const _L2{ lane->L };
356 STACK_CHECK_START_REL(_L2, 0); 356 STACK_CHECK_START_REL(_L2, 0);