Skip to content

Commit

Permalink
New assertion since the bank is assumed to be the same for these subr…
Browse files Browse the repository at this point in the history
…outines
  • Loading branch information
Vortyne authored Dec 23, 2023
1 parent 07cefd4 commit d7e63f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion home/trainers.asm
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,8 @@ SetSpritePosition1::
SetSpritePosition2::
ld hl, _SetSpritePosition2
SpritePositionBankswitch::
ld b, BANK(_GetSpritePosition1) ; BANK(_GetSpritePosition2), BANK(_SetSpritePosition1), BANK(_SetSpritePosition2)
ld b, BANK(_GetSpritePosition1)
assert BANK(_GetSpritePosition1) == BANK(_GetSpritePosition2) == BANK(_SetSpritePosition1) == BANK(_SetSpritePosition2)
jp Bankswitch ; indirect jump to one of the four functions

CheckForEngagingTrainers::
Expand Down

0 comments on commit d7e63f7

Please sign in to comment.