fix(Core/Player): Fix potential freeze on login after skipping cinematics (#9577)
Move to static_cast and matching it up with tc stops the error on console and first login characters from being frozen when skipping cinematics
This commit is contained in:
@@ -12421,7 +12421,7 @@ void Player::SetViewpoint(WorldObject* target, bool apply)
|
|||||||
WorldObject* Player::GetViewpoint() const
|
WorldObject* Player::GetViewpoint() const
|
||||||
{
|
{
|
||||||
if (ObjectGuid guid = GetGuidValue(PLAYER_FARSIGHT))
|
if (ObjectGuid guid = GetGuidValue(PLAYER_FARSIGHT))
|
||||||
return (WorldObject*)ObjectAccessor::GetObjectByTypeMask(*this, guid, TYPEMASK_SEER);
|
return static_cast<WorldObject*>(ObjectAccessor::GetObjectByTypeMask(*this, guid, TYPEMASK_SEER));
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user