From 28dba981db99137a3507c58c4db74d857e060a50 Mon Sep 17 00:00:00 2001 From: CaptainSegis Date: Sat, 5 Jan 2019 02:53:34 -0500 Subject: [PATCH] Oops --- P3D/World/ActionScript/V2/ScriptCommands/DoPokemon.vb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/P3D/World/ActionScript/V2/ScriptCommands/DoPokemon.vb b/P3D/World/ActionScript/V2/ScriptCommands/DoPokemon.vb index e48a8f40c..e5f54694b 100644 --- a/P3D/World/ActionScript/V2/ScriptCommands/DoPokemon.vb +++ b/P3D/World/ActionScript/V2/ScriptCommands/DoPokemon.vb @@ -703,7 +703,7 @@ ' @Pokemon.AddToStorage(PokemonID, Level, [Method], [BallID], [Location], [isEgg], [trainerName]) If argument.StartsWith("{") = True Or argument.Remove(0, argument.IndexOf(",")).StartsWith(",{") = True Then - Dim insertIndex As Integer = Core.Player.Pokemons.Count + Dim insertIndex As Integer = -1 If argument.Remove(0, argument.IndexOf(",")).StartsWith(",{") = True Then insertIndex = int(argument.GetSplit(0)) End If