*Fix a crash caused by player saves with incorrect instance id.
--HG-- branch : trunk
This commit is contained in:
@@ -2028,6 +2028,7 @@ class TRINITY_DLL_SPEC Player : public Unit
|
||||
BoundInstancesMap m_boundInstances[TOTAL_DIFFICULTIES];
|
||||
InstancePlayerBind* GetBoundInstance(uint32 mapid, uint8 difficulty);
|
||||
BoundInstancesMap& GetBoundInstances(uint8 difficulty) { return m_boundInstances[difficulty]; }
|
||||
InstanceSave * GetInstanceSave(uint32 mapid);
|
||||
void UnbindInstance(uint32 mapid, uint8 difficulty, bool unload = false);
|
||||
void UnbindInstance(BoundInstancesMap::iterator &itr, uint8 difficulty, bool unload = false);
|
||||
InstancePlayerBind* BindToInstance(InstanceSave *save, bool permanent, bool load = false);
|
||||
|
||||
Reference in New Issue
Block a user