aboutsummaryrefslogtreecommitdiff
path: root/src/deep.cpp
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-10-25 15:06:41 +0200
committerBenoit Germain <benoit.germain@ubisoft.com>2024-10-25 15:06:41 +0200
commitb4bf1ad095452aabb12896040b522bf1746065a2 (patch)
treefdb4e8e7ddbf71e7f854f1c31dc149bfeb01c37e /src/deep.cpp
parent8e33d8a2ca89d630f8890332df7e5737fc4608c8 (diff)
downloadlanes-b4bf1ad095452aabb12896040b522bf1746065a2.tar.gz
lanes-b4bf1ad095452aabb12896040b522bf1746065a2.tar.bz2
lanes-b4bf1ad095452aabb12896040b522bf1746065a2.zip
New compatibility helper luaG_rawgetfield
Diffstat (limited to 'src/deep.cpp')
-rw-r--r--src/deep.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/deep.cpp b/src/deep.cpp
index bfadeac..278d25f 100644
--- a/src/deep.cpp
+++ b/src/deep.cpp
@@ -216,7 +216,7 @@ void DeepFactory::PushDeepProxy(DestState const L_, DeepPrelude* const prelude_,
216 raise_luaL_error(errL_, "Bad DeepFactory::createMetatable overload: unexpected pushed value"); 216 raise_luaL_error(errL_, "Bad DeepFactory::createMetatable overload: unexpected pushed value");
217 } 217 }
218 // if the metatable contains a __gc, we will call it from our own 218 // if the metatable contains a __gc, we will call it from our own
219 std::ignore = luaG_getfield(L_, kIdxTop, "__gc"); // L_: DPC proxy metatable __gc 219 std::ignore = luaG_rawgetfield(L_, kIdxTop, "__gc"); // L_: DPC proxy metatable __gc
220 } else { 220 } else {
221 // keepers need a minimal metatable that only contains our own __gc 221 // keepers need a minimal metatable that only contains our own __gc
222 lua_createtable(L_, 0, 1); // L_: DPC proxy metatable 222 lua_createtable(L_, 0, 1); // L_: DPC proxy metatable