From 8c142d60777f93105c3584f9dd7af2c3b819ece9 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Fri, 16 Feb 2018 15:04:24 -0500 Subject: [PATCH] Core/Misc: Fix null error and not finding transports --- Source/Game/AI/SmartScripts/SmartAI.cs | 2 +- Source/Game/Maps/Map.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Game/AI/SmartScripts/SmartAI.cs b/Source/Game/AI/SmartScripts/SmartAI.cs index b1f1d0460..09c241a35 100644 --- a/Source/Game/AI/SmartScripts/SmartAI.cs +++ b/Source/Game/AI/SmartScripts/SmartAI.cs @@ -975,7 +975,7 @@ namespace Game.AI bool mForcedPaused; uint mInvincibilityHpLevel; - WaypointPath _path; + WaypointPath _path = new WaypointPath(); uint mDespawnTime; uint mRespawnTime; uint mDespawnState; diff --git a/Source/Game/Maps/Map.cs b/Source/Game/Maps/Map.cs index 63d575c36..1111978d6 100644 --- a/Source/Game/Maps/Map.cs +++ b/Source/Game/Maps/Map.cs @@ -3094,7 +3094,7 @@ namespace Game.Maps public GameObject GetGameObject(ObjectGuid guid) { - if (!guid.IsGameObject()) + if (!guid.IsAnyTypeGameObject()) return null; return (GameObject)_objectsStore.LookupByKey(guid);