*One more map correction - reset map pointer if still avalible in constructor.
--HG-- branch : trunk
This commit is contained in:
1 parent
e10a8c88b6
commit
f0258275e6
1 file changed
+4
-1
+4
-1
@@ -481,7 +481,10 @@ Player::~Player ()
|
||||
// it must be unloaded already in PlayerLogout and accessed only for loggined player
|
||||
//m_social = NULL;
|
||||
|
||||
assert (!FindMap());
|
||||
// Player may still set map - remove it to correctly unload instances
|
||||
if (FindMap())
|
||||
ResetMap();
|
||||
|
||||
|
||||
// Note: buy back item already deleted from DB when player was saved
|
||||
for(uint8 i = 0; i < PLAYER_SLOTS_COUNT; ++i)
|
||||
|
||||
Reference in new issue
Block a user