diff --git a/Source/Game/Globals/ObjectManager.cs b/Source/Game/Globals/ObjectManager.cs index f3393f22f..0908f2e9f 100644 --- a/Source/Game/Globals/ObjectManager.cs +++ b/Source/Game/Globals/ObjectManager.cs @@ -11957,7 +11957,7 @@ namespace Game IndexToName.Add(entry); } - return entry.Id; + return NameToIndex[scriptName].Id; } public int GetSize()