[11252] One missing case for save non-static spawned creatures.

This commit is contained in:
VladimirMangos 2011-03-15 21:39:35 +03:00
parent 7b070a93aa
commit acc12cc9ed
2 changed files with 4 additions and 2 deletions

View file

@ -1730,6 +1730,8 @@ bool ChatHandler::HandleNpcChangeLevelCommand(char* args)
pCreature->SetMaxHealth(100 + 30*lvl);
pCreature->SetHealth(100 + 30*lvl);
pCreature->SetLevel(lvl);
if (pCreature->HasStaticDBSpawnData())
pCreature->SaveToDB();
}

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11251"
#define REVISION_NR "11252"
#endif // __REVISION_NR_H__