Skip to content

Commit

Permalink
Fix parsing of trainz-build stored as int.
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverGreen93 committed Jul 19, 2020
1 parent c299874 commit 8d15282
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions My Project/AssemblyInfo.vb
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices
' by using the '*' as shown below:
' <Assembly: AssemblyVersion("1.0.*")>

<Assembly: AssemblyVersion("3.4.0.0")>
<Assembly: AssemblyFileVersion("3.4.0.0")>
<Assembly: AssemblyVersion("3.5.0.0")>
<Assembly: AssemblyFileVersion("3.5.0.0")>
3 changes: 3 additions & 0 deletions frmMain.vb
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@ Public Class frmMain
'Copy only last 4 bytes. The first 4 are -1
currentAsset.AssetKuid.SetUserID(-1)
currentAsset.AssetKuid.SetContentID(FileStr.ReadInt32())
ElseIf tagName = "trainz-build" Then
'There are some cases when trainz-build is stored as int instead of float.
currentAsset.SetTrainzBuild(FileStr.ReadInt32())
Else
'Just skip
'parse each int value if more than 1
Expand Down

0 comments on commit 8d15282

Please sign in to comment.