aboutsummaryrefslogtreecommitdiff
path: root/src/deep.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/deep.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/deep.cpp b/src/deep.cpp
index c1ef30e..82f1214 100644
--- a/src/deep.cpp
+++ b/src/deep.cpp
@@ -190,8 +190,7 @@ void DeepFactory::PushDeepProxy(DestState const L_, DeepPrelude* const prelude_,
190 190
191 // Check if a proxy already exists 191 // Check if a proxy already exists
192 lua_pushlightuserdata(L_, prelude_); // L_: DPC deep 192 lua_pushlightuserdata(L_, prelude_); // L_: DPC deep
193 lua_rawget(L_, -2); // L_: DPC proxy 193 if (luaG_rawget(L_, StackIndex{ -2 }) != LuaType::NIL) { // L_: DPC proxy
194 if (!lua_isnil(L_, -1)) {
195 lua_remove(L_, -2); // L_: proxy 194 lua_remove(L_, -2); // L_: proxy
196 STACK_CHECK(L_, 1); 195 STACK_CHECK(L_, 1);
197 return; 196 return;