diff --git a/src/game/BattleGround.cpp b/src/game/BattleGround.cpp index 761e970fe..e2c513700 100644 --- a/src/game/BattleGround.cpp +++ b/src/game/BattleGround.cpp @@ -1463,6 +1463,7 @@ Creature* BattleGround::AddCreature(uint32 entry, uint32 type, uint32 teamval, f if (!pCreature->IsPositionValid()) { sLog.outError("Creature (guidlow %d, entry %d) not added to battleground. Suggested coordinates isn't valid (X: %f Y: %f)",pCreature->GetGUIDLow(),pCreature->GetEntry(),pCreature->GetPositionX(),pCreature->GetPositionY()); + delete pCreature; return NULL; } diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 231d140c1..5e1e30960 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "7858" + #define REVISION_NR "7859" #endif // __REVISION_NR_H__