summaryrefslogtreecommitdiff
path: root/engine/events
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-04-16 09:30:50 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-04-16 09:30:50 -0400
commit58b377f25bf673702f26551824b329fb4675f64d (patch)
tree10144e3fb75ae2181bb834a186851d57c9df44cc /engine/events
parent3540578cb3452944d6c60bc13db16bc1f19b3586 (diff)
Fix #709 miscellaneous issues
Diffstat (limited to 'engine/events')
-rw-r--r--engine/events/odd_egg.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/events/odd_egg.asm b/engine/events/odd_egg.asm
index a6ca15b8c..d6d8f344e 100644
--- a/engine/events/odd_egg.asm
+++ b/engine/events/odd_egg.asm
@@ -23,13 +23,13 @@ _GiveOddEgg:
.not_done
; Break when [hRandom] <= de.
- ldh a, [hRandom + 1]
+ ldh a, [hRandomSub]
cp d
jr c, .done
jr z, .ok
jr .next
.ok
- ldh a, [hRandom + 0]
+ ldh a, [hRandomAdd]
cp e
jr c, .done
jr z, .done