From 879451f799486cbc4115c4a0ef49c07334e0df95 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Sat, 1 Oct 2022 16:56:56 -0400 Subject: [PATCH] Fix build --- Source/Game/Chat/Commands/GoCommands.cs | 2 +- Source/Game/Globals/ObjectManager.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Game/Chat/Commands/GoCommands.cs b/Source/Game/Chat/Commands/GoCommands.cs index 10e5f9702..83bc0e24c 100644 --- a/Source/Game/Chat/Commands/GoCommands.cs +++ b/Source/Game/Chat/Commands/GoCommands.cs @@ -544,7 +544,7 @@ namespace Game.Chat.Commands class GoCommandGameobject { [Command("", RBACPermissions.CommandGo)] - static bool HandleGoGameObjectSpawnIdCommand(CommandHandler handler, uint spawnId) + static bool HandleGoGameObjectSpawnIdCommand(CommandHandler handler, ulong spawnId) { GameObjectData spawnpoint = Global.ObjectMgr.GetGameObjectData(spawnId); if (spawnpoint == null) diff --git a/Source/Game/Globals/ObjectManager.cs b/Source/Game/Globals/ObjectManager.cs index a2b2e7063..73f9b6336 100644 --- a/Source/Game/Globals/ObjectManager.cs +++ b/Source/Game/Globals/ObjectManager.cs @@ -5699,6 +5699,7 @@ namespace Game uint count = 0; do { + ushort instanceMapId = result.Read(0); uint spawnGroupId = result.Read(3); var spawnGroupTemplate = _spawnGroupDataStorage.LookupByKey(spawnGroupId); if (spawnGroupTemplate == null || spawnGroupTemplate.flags.HasAnyFlag(SpawnGroupFlags.System)) @@ -5707,7 +5708,6 @@ namespace Game continue; } - ushort instanceMapId = result.Read(0); if (spawnGroupTemplate.mapId != instanceMapId) { Log.outError(LogFilter.Sql, $"Instance spawn group {spawnGroupId} specified for instance {instanceMapId} has spawns on a different map {spawnGroupTemplate.mapId}. Skipped.");