diff options
Diffstat (limited to 'src/lane.cpp')
-rw-r--r-- | src/lane.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lane.cpp b/src/lane.cpp index 029efdb..f07403f 100644 --- a/src/lane.cpp +++ b/src/lane.cpp | |||
@@ -804,7 +804,7 @@ Lane::~Lane() | |||
804 | 804 | ||
805 | void Lane::changeDebugName(int const nameIdx_) | 805 | void Lane::changeDebugName(int const nameIdx_) |
806 | { | 806 | { |
807 | int const _nameIdx{ lua_absindex(L, nameIdx_) }; | 807 | int const _nameIdx{ luaG_absindex(L, nameIdx_) }; |
808 | luaL_checktype(L, _nameIdx, LUA_TSTRING); // L: ... "name" ... | 808 | luaL_checktype(L, _nameIdx, LUA_TSTRING); // L: ... "name" ... |
809 | STACK_CHECK_START_REL(L, 0); | 809 | STACK_CHECK_START_REL(L, 0); |
810 | // store a hidden reference in the registry to make sure the string is kept around even if a lane decides to manually change the "decoda_name" global... | 810 | // store a hidden reference in the registry to make sure the string is kept around even if a lane decides to manually change the "decoda_name" global... |