Skip to content

Commit

Permalink
PlayerBot: Fix build with new login order
Browse files Browse the repository at this point in the history
  • Loading branch information
insunaa authored and killerwife committed Jan 24, 2025
1 parent 15ba646 commit fdc14c3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/game/Maps/Map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1579,9 +1579,11 @@ void Map::UpdateObjectVisibility(WorldObject* obj, Cell cell, const CellPair& ce
#ifdef ENABLE_PLAYERBOTS
if (sPlayerbotAIConfig.disableBotOptimizations || player->isRealPlayer())
#endif
UpdateData data;
player->UpdateVisibilityOf(player->GetCamera().GetBody(), obj, data);
data.SendData(*player->GetSession()); // TODO: This is meant to be done in next broadcast, not immediately
{
UpdateData data;
player->UpdateVisibilityOf(player->GetCamera().GetBody(), obj, data);
data.SendData(*player->GetSession()); // TODO: This is meant to be done in next broadcast, not immediately
}
}
}
}
Expand Down

0 comments on commit fdc14c3

Please sign in to comment.