mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[c12587] Fix possible memory corruption related to loading pet-spells
This commit is contained in:
parent
d087f89a40
commit
97dbc3c412
2 changed files with 6 additions and 1 deletions
|
|
@ -910,6 +910,11 @@ typedef std::map<uint32, PetLevelupSpellSet> PetLevelupSpellMap;
|
||||||
|
|
||||||
struct PetDefaultSpellsEntry
|
struct PetDefaultSpellsEntry
|
||||||
{
|
{
|
||||||
|
PetDefaultSpellsEntry()
|
||||||
|
{
|
||||||
|
memset(&spellid, 0, sizeof(spellid));
|
||||||
|
}
|
||||||
|
|
||||||
uint32 spellid[MAX_CREATURE_SPELL_DATA_SLOT];
|
uint32 spellid[MAX_CREATURE_SPELL_DATA_SLOT];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "12586"
|
#define REVISION_NR "12587"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue