From 86d7394010f84a2719573917f4ac1ecb740c8084 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Wed, 22 Jun 2022 01:05:46 -0400 Subject: [PATCH] Fixes scripts not working. --- Source/Game/Globals/ObjectManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()