summaryrefslogtreecommitdiff
path: root/src/personality_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/personality_test.c')
-rw-r--r--src/personality_test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/personality_test.c b/src/personality_test.c
index 487027f..9a54744 100644
--- a/src/personality_test.c
+++ b/src/personality_test.c
@@ -597,11 +597,11 @@ void RevealPersonality(void)
currentNature = gUnknown_203B400->playerNature;
for(counter = 0; counter < NUM_PERSONALITIES - 1; counter++){
- currentNature = currentNature++;
+ currentNature++;
// Wraparound check
- if (currentNature > NUM_PERSONALITIES - 1) {
- currentNature = 0;
+ if (currentNature > QUIRKY) {
+ currentNature = HARDY;
}
if (gUnknown_203B400->NatureTotals[currentNature] > gUnknown_203B400->NatureTotals[gUnknown_203B400->playerNature]) {