summaryrefslogtreecommitdiff
path: root/src/com/sneed/pkrandom
diff options
context:
space:
mode:
authortom-overton <tom.overton@outlook.com>2022-10-02 06:45:00 -0700
committerrafa_99 <raroma09@gmail.com>2022-10-02 18:46:44 +0100
commitcca67d1676db13c996b0734b4c854b479bed4555 (patch)
tree8306ffb2b42df2e0768ef2d2bfa992070ee327ea /src/com/sneed/pkrandom
parent4226887959f7e48d2fa1b24943384abe2b16447a (diff)
Gen 7: Fix an issue where Nincada could create an invalid Pokemon
Diffstat (limited to 'src/com/sneed/pkrandom')
-rw-r--r--src/com/sneed/pkrandom/romhandlers/Gen7RomHandler.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/sneed/pkrandom/romhandlers/Gen7RomHandler.java b/src/com/sneed/pkrandom/romhandlers/Gen7RomHandler.java
index 07296f7..26ba4ae 100644
--- a/src/com/sneed/pkrandom/romhandlers/Gen7RomHandler.java
+++ b/src/com/sneed/pkrandom/romhandlers/Gen7RomHandler.java
@@ -955,7 +955,7 @@ public class Gen7RomHandler extends Abstract3DSRomHandler {
}
// Write Nincada's new extra evolution in the new free space.
- writeLong(code, offset + 120, extraEvolution.number);
+ writeLong(code, offset + 120, extraEvolution.getBaseNumber());
// Second parameter of pml::pokepara::CoreParam::ChangeMonsNo is the
// new forme number