mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[9141] Prevent memory lost at pet declined names loading.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
7db0ab735b
commit
dbeba5b0b7
2 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue