mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
Fix Eluna crash.
This commit is contained in:
parent
c8494504cd
commit
9f04a3b38f
2 changed files with 5 additions and 2 deletions
|
|
@ -1737,7 +1737,10 @@ void WorldObject::SetMap(Map* map)
|
||||||
// On multithread replace this with a pointer to map's Eluna pointer stored in a map
|
// On multithread replace this with a pointer to map's Eluna pointer stored in a map
|
||||||
elunaEvents = new ElunaEventProcessor(&Eluna::GEluna, this);
|
elunaEvents = new ElunaEventProcessor(&Eluna::GEluna, this);
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
void WorldObject::ResetMap()
|
||||||
|
{
|
||||||
#ifdef ENABLE_ELUNA
|
#ifdef ENABLE_ELUNA
|
||||||
delete elunaEvents;
|
delete elunaEvents;
|
||||||
elunaEvents = NULL;
|
elunaEvents = NULL;
|
||||||
|
|
|
||||||
|
|
@ -646,7 +646,7 @@ class WorldObject : public Object
|
||||||
void SetMap(Map* map);
|
void SetMap(Map* map);
|
||||||
Map* GetMap() const { MANGOS_ASSERT(m_currMap); return m_currMap; }
|
Map* GetMap() const { MANGOS_ASSERT(m_currMap); return m_currMap; }
|
||||||
// used to check all object's GetMap() calls when object is not in world!
|
// used to check all object's GetMap() calls when object is not in world!
|
||||||
void ResetMap() { m_currMap = NULL; }
|
void ResetMap();
|
||||||
|
|
||||||
// obtain terrain data for map where this object belong...
|
// obtain terrain data for map where this object belong...
|
||||||
TerrainInfo const* GetTerrain() const;
|
TerrainInfo const* GetTerrain() const;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue