Skip to content

Commit

Permalink
Merge TrinityCore 3.3.5 to ElunaTrinityWotlk [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Rochet2 committed Oct 28, 2024
2 parents f523b3e + 90db558 commit 4676ea6
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/server/game/Entities/Object/Object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -510,15 +510,7 @@ void Object::ClearUpdateMask(bool remove)

void Object::BuildFieldsUpdate(Player* player, UpdateDataMapType& data_map) const
{
UpdateDataMapType::iterator iter = data_map.find(player);

if (iter == data_map.end())
{
std::pair<UpdateDataMapType::iterator, bool> p = data_map.emplace(player, UpdateData());
ASSERT(p.second);
iter = p.first;
}

UpdateDataMapType::iterator iter = data_map.try_emplace(player).first;
BuildValuesUpdateBlockForPlayer(&iter->second, iter->first);
}

Expand Down

0 comments on commit 4676ea6

Please sign in to comment.