Y_PlayerStandingsDrawer: Fix showing invalid data increase text on tab rankings after an SP intermission

This commit is contained in:
toaster 2023-06-04 12:44:17 +01:00
parent 671919b6ec
commit 6ae7f1f64f

View file

@ -449,7 +449,7 @@ void Y_PlayerStandingsDrawer(y_data_t *standings, INT32 xoffset)
patch_t *resbar = W_CachePatchName("R_RESBAR", PU_PATCH); // Results bars for players
if (drawping || data.rankingsmode != 0)
if (drawping || standings->rankingsmode != 0)
{
inwardshim = 8;
}
@ -604,15 +604,15 @@ void Y_PlayerStandingsDrawer(y_data_t *standings, INT32 xoffset)
);
}
}
else if (data.rankingsmode != 0)
else if (standings->rankingsmode != 0)
{
char *increasenum = NULL;
if (data.increase[pnum] != INT16_MIN)
if (standings->increase[pnum] != INT16_MIN)
{
increasenum = va(
"(%d)",
data.increase[pnum]
standings->increase[pnum]
);
}