2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 17:47:43 +00:00

CPathFindRegion: Resolve sign conversion warning

The only place this is used is in an unsigned context.
This commit is contained in:
Lioncash
2020-05-08 15:49:27 -04:00
parent dc8a0d0d88
commit ed37919018
2 changed files with 7 additions and 4 deletions

View File

@@ -162,14 +162,17 @@ bool CPFRegion::FindBestPoint(std::vector<zeus::CVector3f>& polyPoints, const ze
return found;
}
void CPFRegion::SetLinkTo(s32 idx) {
if (x8_numLinks <= 0)
void CPFRegion::SetLinkTo(u32 idx) {
if (x8_numLinks <= 0) {
return;
for (u32 i = 0; i < x8_numLinks; ++i)
}
for (u32 i = 0; i < x8_numLinks; ++i) {
if (xc_startLink[i].GetRegion() == idx) {
Data()->SetPathLink(i);
return;
}
}
}
void CPFRegion::DropToGround(zeus::CVector3f& point) const {