fixed bug with potentially wrong data size at tape position
authorHolger Schemel <info@artsoft.org>
Tue, 21 Apr 2020 19:20:40 +0000 (21:20 +0200)
committerHolger Schemel <info@artsoft.org>
Tue, 19 May 2020 16:21:19 +0000 (18:21 +0200)
src/files.c

index 51fd5b2ed313a22967001afe6eeeb477b3ec1c15..2ca9976684473f08bf0f9cbf1fe4954e79b0b1c5 100644 (file)
@@ -7723,7 +7723,7 @@ static int LoadTape_BODY(File *file, int chunk_size, struct TapeInfo *tape)
 
       // tape too large; read and ignore remaining tape data from this chunk
       for (;i < tape->length; i++)
-       ReadUnusedBytesFromFile(file, tape->num_participating_players + 1);
+       ReadUnusedBytesFromFile(file, tape_pos_size);
 
       break;
     }