summaryrefslogtreecommitdiff
path: root/src/com/sneed/pkrandom/romhandlers/Gen4RomHandler.java
diff options
context:
space:
mode:
authortom-overton <tom.overton@outlook.com>2022-12-28 03:07:52 -0800
committerRafael Marçalo <raroma09@gmail.com>2023-01-03 14:45:48 +0000
commitc340cfcc1991228fe37ff0cf4768ccb8e416d548 (patch)
tree756872f218817a4ecbb231222ca653689b1be3a0 /src/com/sneed/pkrandom/romhandlers/Gen4RomHandler.java
parent7fb6bd8758fa9e93344a4a229d33f28c89a1df0f (diff)
Fix crash when wild encounters are randomized in HGSS
Diffstat (limited to 'src/com/sneed/pkrandom/romhandlers/Gen4RomHandler.java')
-rwxr-xr-xsrc/com/sneed/pkrandom/romhandlers/Gen4RomHandler.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/sneed/pkrandom/romhandlers/Gen4RomHandler.java b/src/com/sneed/pkrandom/romhandlers/Gen4RomHandler.java
index d3904f8..00d525d 100755
--- a/src/com/sneed/pkrandom/romhandlers/Gen4RomHandler.java
+++ b/src/com/sneed/pkrandom/romhandlers/Gen4RomHandler.java
@@ -3105,7 +3105,7 @@ public class Gen4RomHandler extends AbstractDSRomHandler {
public List<Pokemon> bannedForWildEncounters() {
if (romEntry.romType == Gen4Constants.Type_HGSS) {
// Ban Unown in HGSS because they don't show up unless you complete a puzzle in the Ruins of Alph.
- return Collections.singletonList(pokes[Species.unown]);
+ return new ArrayList<>(Collections.singletonList(pokes[Species.unown]));
}
return new ArrayList<>();
}