Fix increasing number of viewpoints in replays by more than 1 (like pressing '3' with only one viewpoint) crashing game

This commit is contained in:
indev authored and Alug committed 2024-08-14 15:56:44 +02:00
1 parent 8b81f4cef2
commit 0ce6cb4cee
1 file changed
+1
+1
View File
@@ -2137,6 +2137,7 @@ void G_ResetView(UINT8 viewnum, INT32 playernum, boolean onlyactive)
{
for (viewd = splits+1; viewd < viewnum; ++viewd)
{
displayplayers[viewd-1] = G_FindView(displayplayers[viewd-1], viewd, onlyactive, playernum < olddisplayplayer);
G_FixCamera(viewd);
}
}