mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 03:15:41 +00:00
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
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user