version comparison fix

This commit is contained in:
Aragas 2016-12-03 19:47:52 +03:00
parent 214888dbcf
commit 88f5537eb0
1 changed files with 1 additions and 1 deletions

View File

@ -330,7 +330,7 @@ Namespace GameJolt
Private Sub VerifyVersion(ByVal result As String)
Dim list As List(Of GameJolt.API.JoltValue) = GameJolt.API.HandleData(result)
If CBool(list(0).Value) = True Then
If list(1).Value = GameController.GAMEVERSION Or GameController.IS_DEBUG_ACTIVE = True Then
If Version.Parse(list(1).Value) <= Version.Parse(GameController.GAMEVERSION) Or GameController.IS_DEBUG_ACTIVE = True Then
Dim APICall As New APICall(AddressOf VerifyResult)
APICall.VerifyUser(UserName.Text, Token.Text)
Else