[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,7 +1730,9 @@ bool ChatHandler::HandleNpcChangeLevelCommand(char* args)
pCreature->SetMaxHealth(100 + 30*lvl); pCreature->SetMaxHealth(100 + 30*lvl);
pCreature->SetHealth(100 + 30*lvl); pCreature->SetHealth(100 + 30*lvl);
pCreature->SetLevel(lvl); pCreature->SetLevel(lvl);
pCreature->SaveToDB();
if (pCreature->HasStaticDBSpawnData())
pCreature->SaveToDB();
} }
return true; return true;

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 "11251" #define REVISION_NR "11252"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__