Fix some compiler warnings

This commit is contained in:
WaluigiWare64
2021-05-03 13:36:21 +01:00
parent cc36f55b8c
commit 2ff065e5ea
17 changed files with 69 additions and 52 deletions

View File

@ -486,7 +486,7 @@ void DoSavestate(Savestate* file)
{
u32 id;
file->Var32(&id);
if (id == -1) LastStripPolygon = NULL;
if (id == 0xFFFFFFFF) LastStripPolygon = NULL;
else LastStripPolygon = &PolygonRAM[id];
}
@ -535,7 +535,7 @@ void DoSavestate(Savestate* file)
{
u32 id = -1;
file->Var32(&id);
if (id == -1) poly->Vertices[j] = NULL;
if (id == 0xFFFFFFFF) poly->Vertices[j] = NULL;
else poly->Vertices[j] = &VertexRAM[id];
}
}
@ -574,7 +574,7 @@ void DoSavestate(Savestate* file)
{
poly->Degenerate = false;
for (int j = 0; j < poly->NumVertices; j++)
for (u32 j = 0; j < poly->NumVertices; j++)
{
if (poly->Vertices[j]->Position[3] == 0)
poly->Degenerate = true;