2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-10 07:47:42 +00:00

CPASDatabase: Resolve sign-conversion warnings

We can leverage size_t here to resolve sign-conversion warnings.

While we're in the same area, we can remove a use of at() for
std::vector, given a bounds check already precedes it.
This commit is contained in:
Lioncash
2020-04-06 13:21:04 -04:00
parent 8dcd6b3109
commit f96ea81d69
2 changed files with 6 additions and 5 deletions

View File

@@ -8,7 +8,7 @@ namespace urde {
CBodyStateInfo::CBodyStateInfo(CActor& actor, EBodyType type) {
x34_24_changeLocoAtEndOfAnimOnly = false;
const CPASDatabase& pasDatabase = actor.GetModelData()->GetAnimationData()->GetCharacterInfo().GetPASDatabase();
for (int i = 0; i < pasDatabase.GetNumAnimStates(); ++i) {
for (size_t i = 0; i < pasDatabase.GetNumAnimStates(); ++i) {
const CPASAnimState* state = pasDatabase.GetAnimStateByIndex(i);
std::unique_ptr<CBodyState> bs;