Skip to content

Commit

Permalink
Transport: Ensure correct HighGuid
Browse files Browse the repository at this point in the history
  • Loading branch information
insunaa authored and killerwife committed Jul 4, 2024
1 parent 5045ad1 commit 133e30a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/game/Entities/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16501,7 +16501,10 @@ bool Player::LoadFromDB(ObjectGuid guid, SqlQueryHolder* holder)
{
GameObjectInfo const* transportInfo = sGOStorage.LookupEntry<GameObjectInfo>(data->id);
if (transportInfo->type == GAMEOBJECT_TYPE_TRANSPORT)
{
guid = ObjectGuid(HIGHGUID_GAMEOBJECT, data->id, transGUID);
m_movementInfo.t_guid = guid;
}
}
GenericTransport* transport = GetMap()->GetTransport(guid);
Map* map = GetMap();
Expand Down

0 comments on commit 133e30a

Please sign in to comment.