Skip to content

Commit 1a8aeed

Browse files
committed
1 parent 2b54ed5 commit 1a8aeed

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/replay/replay_play.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ bool ReplayPlay::addReplayFile(const std::string& fn, bool custom_replay, int ca
283283

284284
rd.m_track = t;
285285

286+
rd.m_info = "";
286287
fgets(s, 1023, fd);
287288
if (sscanf(s, "info: %1023s", s1) == 1)
288289
{
@@ -370,6 +371,7 @@ void ReplayPlay::loadFile(bool second_replay)
370371
.m_kart_list.size();
371372
unsigned int lines_to_skip = (rd.m_replay_version == 3) ? 7 : 10;
372373
lines_to_skip += (rd.m_replay_version == 3) ? num_kart : 2*num_kart;
374+
lines_to_skip += (rd.m_info != "") ? 1 : 0;
373375

374376
for (unsigned int i = 0; i < lines_to_skip; i++)
375377
fgets(s, 1023, fd);

0 commit comments

Comments
 (0)