Skip to content

Commit

Permalink
range based for loop in clearmodel()
Browse files Browse the repository at this point in the history
  • Loading branch information
no-lex committed Oct 17, 2023
1 parent 16244ee commit 8bb0cce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/engine/render/rendermodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -743,9 +743,8 @@ static void clearmodel(const char *name)
conoutf("model %s is not loaded", name);
return;
}
for(uint i = 0; i < mapmodels.size(); i++)
for(mapmodelinfo &mmi : mapmodels)
{
mapmodelinfo &mmi = mapmodels[i];
if(mmi.m == m)
{
mmi.m = nullptr;
Expand Down

0 comments on commit 8bb0cce

Please sign in to comment.