mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-04-15 05:32:21 +00:00
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:
committed by
GitHub
parent
a0b6b17072
commit
2afd38cb30
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user