Core/Misc: Fix null error and not finding transports
This commit is contained in:
@@ -975,7 +975,7 @@ namespace Game.AI
|
|||||||
bool mForcedPaused;
|
bool mForcedPaused;
|
||||||
uint mInvincibilityHpLevel;
|
uint mInvincibilityHpLevel;
|
||||||
|
|
||||||
WaypointPath _path;
|
WaypointPath _path = new WaypointPath();
|
||||||
uint mDespawnTime;
|
uint mDespawnTime;
|
||||||
uint mRespawnTime;
|
uint mRespawnTime;
|
||||||
uint mDespawnState;
|
uint mDespawnState;
|
||||||
|
|||||||
@@ -3094,7 +3094,7 @@ namespace Game.Maps
|
|||||||
|
|
||||||
public GameObject GetGameObject(ObjectGuid guid)
|
public GameObject GetGameObject(ObjectGuid guid)
|
||||||
{
|
{
|
||||||
if (!guid.IsGameObject())
|
if (!guid.IsAnyTypeGameObject())
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
return (GameObject)_objectsStore.LookupByKey(guid);
|
return (GameObject)_objectsStore.LookupByKey(guid);
|
||||||
|
|||||||
Reference in New Issue
Block a user