mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[11016] Fixed crash at logout not in world guld member.
This commit is contained in:
parent
0c19c2c6a2
commit
805d62bef1
3 changed files with 3 additions and 2 deletions
|
|
@ -35,7 +35,7 @@ void MemberSlot::SetMemberStats(Player* player)
|
|||
Name = player->GetName();
|
||||
Level = player->getLevel();
|
||||
Class = player->getClass();
|
||||
ZoneId = player->GetZoneId();
|
||||
ZoneId = player->IsInWorld() ? player->GetZoneId() : player->GetCachedZoneId();
|
||||
}
|
||||
|
||||
void MemberSlot::UpdateLogoutTime()
|
||||
|
|
|
|||
|
|
@ -1761,6 +1761,7 @@ class MANGOS_DLL_SPEC Player : public Unit
|
|||
void UpdatePvP(bool state, bool ovrride=false);
|
||||
void UpdateZone(uint32 newZone,uint32 newArea);
|
||||
void UpdateArea(uint32 newArea);
|
||||
uint32 GetCachedZoneId() const { return m_zoneUpdateId; }
|
||||
|
||||
void UpdateZoneDependentAuras();
|
||||
void UpdateAreaDependentAuras(); // subzones
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "11015"
|
||||
#define REVISION_NR "11016"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue