From 16b0dd2fe8c37885e9d35154d1ad716d8b5849f3 Mon Sep 17 00:00:00 2001 From: nashmuhandes Date: Fri, 5 Mar 2021 15:07:18 +0800 Subject: [PATCH] Fix random crash when travelling between hub maps in multiplayer. --- src/p_saveg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_saveg.cpp b/src/p_saveg.cpp index d1b7a1ff67..6edb99fcfe 100644 --- a/src/p_saveg.cpp +++ b/src/p_saveg.cpp @@ -812,7 +812,7 @@ void FLevelLocals::ReadMultiplePlayers(FSerializer &arc, int numPlayers, int num } else { - for (i = 0; i < MAXPLAYERS; ++i) + for (i = 0; i < numPlayers; ++i) { players[i].mo = playertemp[i].mo; }