Testing this
diff --git a/src/game/Object.h b/src/game/Object.h
index 1a697fe..651e344 100644
--- a/src/game/Object.h
+++ b/src/game/Object.h
@@ -421,7 +421,10 @@ class MANGOS_DLL_SPEC WorldObject : public Object
float GetDistanceZ(const WorldObject* obj) const;
bool IsInMap(const WorldObject* obj) const
{
- return IsInWorld() && obj->IsInWorld() && (GetMap() == obj->GetMap()) && InSamePhase(obj);
+ if(obj)
+ return IsInWorld() && obj->IsInWorld() && (GetMap() == obj->GetMap()) && InSamePhase(obj);
+ else
+ return false;
}
bool IsWithinDist3d(float x, float y, float z, float dist2compare) const;
bool IsWithinDist2d(float x, float y, float dist2compare) const;
EDIT: Well. 3+ Hours fine, i thing this solve part of the problem, but after, 3 hours, make crash, and continue crash every 10-60 minutes
continue testing.