diff --git a/P3D/World/ActionScript/V2/ScriptCommands/DoPokedex.vb b/P3D/World/ActionScript/V2/ScriptCommands/DoPokedex.vb index b780f7c67..4a613270d 100644 --- a/P3D/World/ActionScript/V2/ScriptCommands/DoPokedex.vb +++ b/P3D/World/ActionScript/V2/ScriptCommands/DoPokedex.vb @@ -18,7 +18,7 @@ If argument.Split(",").Count > 2 Then ForceChange = CBool(argument.GetSplit(2, ",")) End If - Pokedex.ChangeEntry(Core.Player.PokedexData, argument.GetSplit(0, ","), CInt(argument.GetSplit(1, ",")), ForceChange) + Core.Player.PokedexData = Pokedex.ChangeEntry(Core.Player.PokedexData, argument.GetSplit(0, ","), CInt(argument.GetSplit(1, ",")), ForceChange) Case Else Logger.Log(Logger.LogTypes.Warning, "ScriptCommander.vb: (@pokedex." & command & ") Command not found.") End Select