Skip to content

Commit

Permalink
Use range loop
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNormalnij committed Aug 21, 2024
1 parent 91a22d0 commit 71d99cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Client/game_sa/CDummyPoolSA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ void CDummyPoolSA::UpdateBuildingLods(const std::uint32_t offset)

void CDummyPoolSA::UpdateBackupLodOffset(const std::uint32_t offset)
{
for (auto i = 0; i < (*m_pOriginalElementsBackup).size(); i++)
for (auto& it : *m_pOriginalElementsBackup)
{
if ((*m_pOriginalElementsBackup)[i].first)
if (it.first)
{
CEntitySAInterface* object = &(*m_pOriginalElementsBackup)[i].second;
CEntitySAInterface* object = &it.second;
CEntitySAInterface* lod = object->GetLod();
if (lod)
object->SetLod((CEntitySAInterface*)((std::uint32_t)lod + offset));
Expand Down

0 comments on commit 71d99cb

Please sign in to comment.