Skip to content

Commit e89e21a

Browse files
committed
Fixed nullreference in stats_evaluate command.
1 parent 2e89762 commit e89e21a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Runtime/DevConsoleMono.cs

+8-1
Original file line numberDiff line numberDiff line change
@@ -2584,7 +2584,14 @@ void logChildren(GameObject obj, int tabAmount)
25842584
return;
25852585
}
25862586

2587-
RunCommand($"cs_evaluate {_stats[name]}");
2587+
try
2588+
{
2589+
DevConsole.LogVariable(name, _stats[name].GetResult(_monoEvaluator) ?? "NULL");
2590+
}
2591+
catch (Exception e)
2592+
{
2593+
DevConsole.LogException(e);
2594+
}
25882595
}
25892596
));
25902597

0 commit comments

Comments
 (0)