This repository was archived by the owner on Aug 31, 2021. It is now read-only.
Commit 4e7a7df
committed
[[ Bug 20961 ]] Reset the menu object when swapping menus
This patch resets `MCmenuobjectptr` to `null` when changing from one
menu to another. This allows `openmenu` to set it to the new button and
and for `closemenu` to correctly set it to `null`. Previously
`MCmenuobjectptr` was left referring to the first button and therefore
not cleared on `closemenu` and leaving the button in an unable to delete
state.1 parent a8f7126 commit 4e7a7df
2 files changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
911 | 911 | | |
912 | 912 | | |
913 | 913 | | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
914 | 918 | | |
915 | 919 | | |
916 | 920 | | |
| |||
0 commit comments