From f38fdfc781e7af8841cf3279d05beba8fa01663f Mon Sep 17 00:00:00 2001 From: hondacrx Date: Tue, 19 Jan 2021 13:52:34 -0500 Subject: [PATCH] Misc fixes --- Source/Framework/Constants/PlayerConst.cs | 2 +- Source/Game/AI/SmartScripts/SmartScript.cs | 2 +- Source/Game/DataStorage/DB2Manager.cs | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/Framework/Constants/PlayerConst.cs b/Source/Framework/Constants/PlayerConst.cs index 4863f7bec..5282f23cd 100644 --- a/Source/Framework/Constants/PlayerConst.cs +++ b/Source/Framework/Constants/PlayerConst.cs @@ -45,7 +45,7 @@ namespace Framework.Constants public const uint infinityCooldownDelayCheck = Time.Month / 2; public const int MaxPlayerSummonDelay = 2 * Time.Minute; - public const int TaxiMaskSize = 336; + public const int TaxiMaskSize = 337; // corpse reclaim times public const int DeathExpireStep = (5 * Time.Minute); diff --git a/Source/Game/AI/SmartScripts/SmartScript.cs b/Source/Game/AI/SmartScripts/SmartScript.cs index 415c5b7d4..36f1783c3 100644 --- a/Source/Game/AI/SmartScripts/SmartScript.cs +++ b/Source/Game/AI/SmartScripts/SmartScript.cs @@ -2031,7 +2031,7 @@ namespace Game.AI { List sounds = new List(); var randomSound = e.Action.randomSound; - foreach (var id in new[] { randomSound.sound1, randomSound.sound2, randomSound.sound3, randomSound.sound4, randomSound.sound5 }) + foreach (var id in new[] { randomSound.sound1, randomSound.sound2, randomSound.sound3, randomSound.sound4 }) if (id != 0) sounds.Add(id); diff --git a/Source/Game/DataStorage/DB2Manager.cs b/Source/Game/DataStorage/DB2Manager.cs index ddc2361f7..4aed772e7 100644 --- a/Source/Game/DataStorage/DB2Manager.cs +++ b/Source/Game/DataStorage/DB2Manager.cs @@ -728,6 +728,7 @@ namespace Game.DataStorage } } + HotfixRecord hotfixRecord = new HotfixRecord(); hotfixRecord.TableHash = tableHash; hotfixRecord.RecordID = recordId;