Skip to content

Commit 3f88538

Browse files
committed
fix compile error
1 parent a8be738 commit 3f88538

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

emmy_core/emmy_debugger.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,8 @@ void Debugger::GetVariable(Variable* variable, lua_State* L, int index, int dept
335335

336336
// __index
337337
{
338-
if (lua_getfield(L, -1, "__index")) {
338+
lua_getfield(L, -1, "__index");
339+
if (!lua_isnil(L, -1)) {
339340
Variable v;
340341
GetVariable(&v, L, -1, 2);
341342
if (depth > 1) {

0 commit comments

Comments
 (0)