Relabel some map_object struct fields (#1029)

This commit is contained in:
vulcandth
2023-01-03 21:16:08 -06:00
committed by GitHub
parent 2d40e99d11
commit c01409be5a
7 changed files with 37 additions and 28 deletions

View File

@@ -546,10 +546,10 @@ TryObjectEvent:
ldh a, [hLastTalked]
call GetMapObject
ld hl, MAPOBJECT_COLOR
ld hl, MAPOBJECT_TYPE
add hl, bc
ld a, [hl]
and %00001111
and MAPOBJECT_TYPE_MASK
; BUG: TryObjectEvent arbitrary code execution (see docs/bugs_and_glitches.md)
push bc