[c12587] Fix possible memory corruption related to loading pet-spells

This commit is contained in:
Schmoozerd 2013-05-31 10:38:49 +01:00 committed by Antz
parent d087f89a40
commit 97dbc3c412
2 changed files with 6 additions and 1 deletions

View file

@ -910,6 +910,11 @@ typedef std::map<uint32, PetLevelupSpellSet> PetLevelupSpellMap;
struct PetDefaultSpellsEntry
{
PetDefaultSpellsEntry()
{
memset(&spellid, 0, sizeof(spellid));
}
uint32 spellid[MAX_CREATURE_SPELL_DATA_SLOT];
};

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "12586"
#define REVISION_NR "12587"
#endif // __REVISION_NR_H__