Skip to content

Commit 5c289a4

Browse files
committed
Fixed issue with cached enum types.
1 parent 601ed0d commit 5c289a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Runtime/DevConsoleMono.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1527,9 +1527,9 @@ private void InitBuiltInCommands()
15271527
{
15281528
// Cache the type
15291529
_cacheEnumTypes.Add(enumType);
1530-
if (_commandHistory.Count > MaxCachedEnumTypes)
1530+
if (_cacheEnumTypes.Count > MaxCachedEnumTypes)
15311531
{
1532-
_commandHistory.RemoveAt(0);
1532+
_cacheEnumTypes.RemoveAt(0);
15331533
}
15341534
break;
15351535
}

0 commit comments

Comments
 (0)