diff options
Diffstat (limited to 'src/game/Level2.cpp')
-rw-r--r-- | src/game/Level2.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/Level2.cpp b/src/game/Level2.cpp index 16fe0f48fd5..530a243794d 100644 --- a/src/game/Level2.cpp +++ b/src/game/Level2.cpp @@ -634,7 +634,7 @@ bool ChatHandler::HandleGameObjectTurnCommand(const char* args) obj->Relocate(obj->GetPositionX(), obj->GetPositionY(), obj->GetPositionZ(), o); obj->UpdateRotationFields(); obj->DestroyForNearbyPlayers(); - ObjectAccessor::UpdateObjectVisibility(obj); + obj->UpdateObjectVisibility(); obj->SaveToDB(); obj->Refresh(); @@ -678,7 +678,7 @@ bool ChatHandler::HandleGameObjectMoveCommand(const char* args) Player *chr = m_session->GetPlayer(); obj->Relocate(chr->GetPositionX(), chr->GetPositionY(), chr->GetPositionZ(), obj->GetOrientation()); obj->DestroyForNearbyPlayers(); - ObjectAccessor::UpdateObjectVisibility(obj); + obj->UpdateObjectVisibility(); } else { @@ -698,7 +698,7 @@ bool ChatHandler::HandleGameObjectMoveCommand(const char* args) obj->Relocate(x, y, z, obj->GetOrientation()); obj->DestroyForNearbyPlayers(); - ObjectAccessor::UpdateObjectVisibility(obj); + obj->UpdateObjectVisibility(); } obj->SaveToDB(); |