Skip to content

Commit

Permalink
[10622] Set respawn delay for BG creatures before set dead state.
Browse files Browse the repository at this point in the history
This prevent save to DB wrong respawn time and unexpected in wrong event state spawn BG creatures.
  • Loading branch information
VladimirMangos committed Oct 19, 2010
1 parent a946ebc commit c88e9d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/game/BattleGround.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1587,8 +1587,8 @@ void BattleGround::SpawnBGCreature(uint64 const& guid, uint32 respawntime)
else
{
map->Add(obj);
obj->SetDeathState(JUST_DIED);
obj->SetRespawnDelay(respawntime);
obj->SetDeathState(JUST_DIED);
obj->RemoveCorpse();
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10621"
#define REVISION_NR "10622"
#endif // __REVISION_NR_H__

0 comments on commit c88e9d5

Please sign in to comment.