Skip to content

Commit

Permalink
skeldata::build range based for loop
Browse files Browse the repository at this point in the history
  • Loading branch information
no-lex committed Sep 19, 2023
1 parent 9b53d8d commit dd0a304
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/engine/model/hitzone.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -999,12 +999,11 @@ void skelhitdata::build(const skelmodel::skelmeshgroup *g, const uchar *ids)
{
skelzoneinfo &zi = *info[i];
zi.index = i;
for(uint j = 0; j < zi.children.size(); j++)
for(skelzoneinfo *&zj : zi.children)
{
skelzoneinfo &zj = *zi.children[j];
if(!--zj.conflicts)
if(!--zj->conflicts)
{
info.push_back(&zj);
info.push_back(zj);
}
}
}
Expand Down

0 comments on commit dd0a304

Please sign in to comment.