From f0258275e6d2e3918ab3dd887741b431ae8fda37 Mon Sep 17 00:00:00 2001 From: QAston Date: Sat, 1 Aug 2009 22:00:06 +0200 Subject: [PATCH] *One more map correction - reset map pointer if still avalible in constructor. --HG-- branch : trunk --- src/game/Player.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 6c52978fa4..6cb586b506 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -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)