projects
/
gbrg
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8506ad6
)
unit: Fixed a crash when exiting the select menu
author
Lukas Krickl
<lukas@krickl.dev>
Mon, 1 Sep 2025 03:04:17 +0000
(
05:04
+0200)
committer
Lukas Krickl
<lukas@krickl.dev>
Mon, 1 Sep 2025 03:04:17 +0000
(
05:04
+0200)
This crash was caused by the player state being set incorrectly.
src/unit.s
patch
|
blob
|
history
diff --git
a/src/unit.s
b/src/unit.s
index 1561458a274fb9e61c4a114904f02a9389befbc6..9e315b80ca4cd4a10baf0012e2242d7befa4a984 100644
(file)
--- a/
src/unit.s
+++ b/
src/unit.s
@@
-306,9
+306,7
@@
unit_handle_inputs:
ld b, BTNSELECT
input_just
jr z, @notselect REL
- pop bc
call action_menu_init
- push bc ; bc = next state
@notselect:
ld b, BTNUP