Skip to content

Commit deaf641

Browse files
committed
Merged pull request moonsharp-devs#173
1 parent f7e236b commit deaf641

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MoonSharp.Interpreter/CoreLib/DebugModule.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public static DynValue getmetatable(ScriptExecutionContext executionContext, Cal
8484

8585
if (v.Type.CanHaveTypeMetatables() && S.GetTypeMetatable(v.Type) != null)
8686
return DynValue.NewTable(S.GetTypeMetatable(v.Type));
87-
else if (v.Type == DataType.Table)
87+
else if (v.Type == DataType.Table && v.Table.MetaTable != null)
8888
return DynValue.NewTable(v.Table.MetaTable);
8989
else
9090
return DynValue.Nil;

0 commit comments

Comments
 (0)