Fix trainer money crash

This commit is contained in:
JappaWakka 2023-09-15 20:04:51 +02:00 committed by GitHub
parent 3d13d90b63
commit 135f0cdd4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -140,7 +140,7 @@ Public Class Trainer
isDoubleTrainerValid += 1 isDoubleTrainerValid += 1
End If End If
Case "money" Case "money"
Me.Money = CInt(ScriptCommander.Parse(value).ToString()) Me.Money = CInt(ScriptConversion.ToInteger(ScriptCommander.Parse(value).ToString()))
Case "intromessage" Case "intromessage"
Me.IntroMessage = ScriptCommander.Parse(value).ToString() Me.IntroMessage = ScriptCommander.Parse(value).ToString()
Case "outromessage" Case "outromessage"