*Fix a crash caused by player saves with incorrect instance id.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-06-27 16:18:08 -05:00
parent 77cd4a8cb0
commit a363df1836
3 changed files with 21 additions and 10 deletions
+1
View File
@@ -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);