Skip to content

Commit fd7d83b

Browse files
author
Chris Jakeman
committed
Set defaults for CabControls
These will be mostly overridden when parsing the CVF file but allows for controls that don't set during parsing.
1 parent 74a28cd commit fd7d83b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Source/Orts.Formats.Msts/CabViewFile.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,10 @@ public class CabViewControl
346346
public double Width;
347347
public double Height;
348348

349-
public double MinValue;
350-
public double MaxValue;
349+
// Defaults which may be overridden when parsing CVF file
350+
public double MinValue = 0.0;
351+
public double MaxValue = 1.0;
352+
351353
public double OldValue;
352354
public string ACEFile = "";
353355

0 commit comments

Comments
 (0)