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/nameof.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/nameof.cpp')
-rw-r--r-- | src/nameof.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nameof.cpp b/src/nameof.cpp index fd31a28..ef03820 100644 --- a/src/nameof.cpp +++ b/src/nameof.cpp | |||
@@ -125,7 +125,7 @@ THE SOFTWARE. | |||
125 | STACK_CHECK(L_, 2); | 125 | STACK_CHECK(L_, 2); |
126 | // search in the object's uservalues | 126 | // search in the object's uservalues |
127 | { | 127 | { |
128 | int _uvi{ 1 }; | 128 | UserValueIndex _uvi{ 1 }; |
129 | while (lua_getiuservalue(L_, kIdxTop, _uvi) != LUA_TNONE) { // L_: o "r" {c} {fqn} ... {?} k U {u} | 129 | while (lua_getiuservalue(L_, kIdxTop, _uvi) != LUA_TNONE) { // L_: o "r" {c} {fqn} ... {?} k U {u} |
130 | if (lua_istable(L_, -1)) { // if it is a table, look inside | 130 | if (lua_istable(L_, -1)) { // if it is a table, look inside |
131 | ++depth_; | 131 | ++depth_; |