2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 11:07:44 +00:00

CMapArea: Resolve sign conversion warning in Draw()

Resolves a trivial sign-conversion warning.
This commit is contained in:
Lioncash
2020-03-13 16:07:39 -04:00
parent df4487bae8
commit 4601abf5df
3 changed files with 5 additions and 4 deletions

View File

@@ -246,9 +246,10 @@ void CMapArea::CMapAreaSurface::PostConstruct(const u8* buf, std::vector<u32>& i
}
void CMapArea::CMapAreaSurface::Draw(const zeus::CVector3f* verts, const zeus::CColor& surfColor,
const zeus::CColor& lineColor, float lineWidth, int instIdx) const {
if (instIdx >= m_instances.size())
const zeus::CColor& lineColor, float lineWidth, size_t instIdx) const {
if (instIdx >= m_instances.size()) {
return;
}
Instance& instance = const_cast<Instance&>(m_instances[instIdx]);