Skip to content

Commit 0cb6b1a

Browse files
committed
Fix crash in unpacking
1 parent fd46b5c commit 0cb6b1a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

play.pokemonshowdown.com/js/storage.js

+2
Original file line numberDiff line numberDiff line change
@@ -942,6 +942,7 @@ Storage.fastUnpackTeam = function (buf) {
942942
}
943943
i = j + 1;
944944
} else {
945+
set.movePPUps = [];
945946
for (var index = 0; index < set.moves.length; index++) {
946947
set.movePPUps[index] = 3;
947948
}
@@ -1081,6 +1082,7 @@ Storage.unpackTeam = function (buf) {
10811082
}
10821083
i = j + 1;
10831084
} else {
1085+
set.movePPUps = [];
10841086
for (var index = 0; index < set.moves.length; index++) {
10851087
set.movePPUps[index] = 3;
10861088
}

0 commit comments

Comments
 (0)