From b95d84a570d087c0b3ba965247b19b54e53d6024 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 1 Apr 2020 23:57:53 -0400 Subject: [PATCH] CGrenadeLauncher: Resolve sign conversion warnings in constructor --- Runtime/MP1/World/CGrenadeLauncher.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Runtime/MP1/World/CGrenadeLauncher.cpp b/Runtime/MP1/World/CGrenadeLauncher.cpp index 854833472..e3cbb9302 100644 --- a/Runtime/MP1/World/CGrenadeLauncher.cpp +++ b/Runtime/MP1/World/CGrenadeLauncher.cpp @@ -31,8 +31,8 @@ CGrenadeLauncher::CGrenadeLauncher(TUniqueId uid, std::string_view name, const C } GetModelData()->EnableLooping(true); const CPASDatabase& pasDatabase = GetModelData()->GetAnimationData()->GetCharacterInfo().GetPASDatabase(); - for (int i = 0; i < x3c8_animIds.size(); ++i) { - const auto result = pasDatabase.FindBestAnimation(CPASAnimParmData{22, CPASAnimParm::FromEnum(i)}, -1); + for (size_t i = 0; i < x3c8_animIds.size(); ++i) { + const auto result = pasDatabase.FindBestAnimation(CPASAnimParmData{22, CPASAnimParm::FromEnum(int(i))}, -1); x3c8_animIds[i] = result.second; } }