Core/Commands: Fixed creature/gameobject move commands not updating which cell they belong to
Port From (https://github.com/TrinityCore/TrinityCore/commit/dcd69240b6a57e4e4687febd9422069c184a4cae)
This commit is contained in:
@@ -239,7 +239,9 @@ namespace Game.Chat
|
||||
return false;
|
||||
}
|
||||
|
||||
Global.ObjectMgr.RemoveCreatureFromGrid(lowguid, data);
|
||||
data.spawnPoint.Relocate(player);
|
||||
Global.ObjectMgr.AddCreatureToGrid(lowguid, data);
|
||||
|
||||
// update position in DB
|
||||
PreparedStatement stmt = DB.World.GetPreparedStatement(WorldStatements.UPD_CREATURE_POSITION);
|
||||
|
||||
Reference in New Issue
Block a user