Initialized mode when parsing a zwo-file (#4448)

When zwo workout files are read, mode was not set but the original value
kept. This could lead to wrong perspective switches in Train-mode.
This commit is contained in:
Joachim Kohlhammer
2024-02-20 18:09:57 +01:00
committed by GitHub
parent a0b6b17072
commit 2afd38cb30

View File

@@ -144,7 +144,7 @@ void ErgFile::parseZwift()
Ftp = 0; // FTP this file was targetted at
MaxWatts = 0; // maxWatts in this ergfile (scaling)
valid = false; // did it parse ok?
format = ERG; // default to couse until we know
mode = format = ERG; // default to couse until we know
Points.clear();
Laps.clear();
Texts.clear();