From ab744808c7b7d0c88377073cbc94019d464756bc Mon Sep 17 00:00:00 2001 From: Machiavelli Date: Sat, 15 Aug 2009 18:48:25 +0200 Subject: *Forgot to move delete result after fetch function. Note: Dual speccing isn't working fully, going past rev 5037 is not recommended. --HG-- branch : trunk --- src/game/Player.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/game/Player.cpp') diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 463398eeab2..82c8eb2ded0 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -15018,8 +15018,6 @@ bool Player::LoadFromDB( uint32 guid, SqlQueryHolder *holder ) if(m_deathExpireTime > now+MAX_DEATH_COUNT*DEATH_EXPIRE_STEP) m_deathExpireTime = now+MAX_DEATH_COUNT*DEATH_EXPIRE_STEP-1; - delete result; - // clear channel spell data (if saved at channel spell casting) SetUInt64Value(UNIT_FIELD_CHANNEL_OBJECT, 0); SetUInt32Value(UNIT_CHANNEL_SPELL,0); @@ -15066,6 +15064,7 @@ bool Player::LoadFromDB( uint32 guid, SqlQueryHolder *holder ) m_specsCount = fields[42].GetUInt32(); m_activeSpec = fields[43].GetUInt32(); + delete result; // sanity check if (m_specsCount > MAX_TALENT_SPECS || m_activeSpec > MAX_TALENT_SPECS) // if (m_specsCount < 2) is not logical -- cgit v1.2.3