diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-10-24 14:53:09 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-10-24 14:53:09 +0200 |
commit | 4044e86ea4197535b70bc434634faf90cd2317d0 (patch) | |
tree | 522af1b44e3dda30ff66ed2245aad54ceeb7e1b2 /src/lanes.cpp | |
parent | 958ed4f1e29418e90f3dd3de6779e30e05f70448 (diff) | |
download | lanes-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.cpp | 2 |
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); |