Fix writing followercolor in replays ( resolves ring-racers#94 )

Technically was always broken, but usually failed safe into duplicating slot 0's.
This commit is contained in:
toaster 2025-09-17 00:30:21 +01:00
parent 6eae1715a0
commit 575690305d

View file

@ -2241,7 +2241,7 @@ void G_BeginRecording(void)
// Save follower's colour
for (j = (numskincolors+2)-1; j > 0; j--)
{
if (Followercolor_cons_t[j].value == players[i].followercolor)
if (Followercolor_cons_t[j].value == player->followercolor)
break;
}
demobuf.p += copy_fixed_buf(demobuf.p, Followercolor_cons_t[j].strvalue, g_buffer_sizes.color_name); // Not KartColor_Names because followercolor has extra values such as "Match"