Skip to content

Commit

Permalink
remove unnecessary casts in skelzonekey::includes
Browse files Browse the repository at this point in the history
  • Loading branch information
no-lex committed Oct 20, 2023
1 parent 3dbfe57 commit 49f6ef0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/engine/model/hitzone.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -576,8 +576,8 @@ skelzonekey::skelzonekey(const skelmodel::skelmesh *m, const skelmodel::tri &t)

bool skelzonekey::includes(const skelzonekey &o) const
{
int j = 0;
for(int i = 0; i < static_cast<int>(sizeof(bones)); ++i)
size_t j = 0;
for(size_t i = 0; i < sizeof(bones); ++i)
{
if(bones[i] > o.bones[j])
{
Expand All @@ -588,7 +588,7 @@ bool skelzonekey::includes(const skelzonekey &o) const
j++;
}
}
return j < static_cast<int>(sizeof(bones)) ? o.bones[j] == 0xFF : blend < 0 || blend == o.blend;
return j < sizeof(bones) ? o.bones[j] == 0xFF : blend < 0 || blend == o.blend;
}

void skelzonekey::subtract(const skelzonekey &o)
Expand Down

0 comments on commit 49f6ef0

Please sign in to comment.