[9141] Prevent memory lost at pet declined names loading.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
Anubisss 2010-01-10 20:25:29 +03:00 committed by VladimirMangos
parent 7db0ab735b
commit dbeba5b0b7
2 changed files with 3 additions and 3 deletions

View file

@ -325,9 +325,9 @@ bool Pet::LoadPetFromDB( Player* owner, uint32 petentry, uint32 petnumber, bool
m_declinedname = new DeclinedName; m_declinedname = new DeclinedName;
Field *fields2 = result->Fetch(); Field *fields2 = result->Fetch();
for(int i = 0; i < MAX_DECLINED_NAME_CASES; ++i) for(int i = 0; i < MAX_DECLINED_NAME_CASES; ++i)
{
m_declinedname->name[i] = fields2[i].GetCppString(); m_declinedname->name[i] = fields2[i].GetCppString();
}
delete result;
} }
} }

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "9140" #define REVISION_NR "9141"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__