diff options
| author | Machiavelli <none@none> | 2009-08-15 18:48:25 +0200 |
|---|---|---|
| committer | Machiavelli <none@none> | 2009-08-15 18:48:25 +0200 |
| commit | ab744808c7b7d0c88377073cbc94019d464756bc (patch) | |
| tree | 4ca15a90115727027cf5f251af7b4a9214a6417b /src | |
| parent | 2057f7d01d91ce65195d9196e0f23ef46b666059 (diff) | |
*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
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/Player.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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 |
