diff options
Diffstat (limited to 'home/update_sprites.asm')
-rw-r--r-- | home/update_sprites.asm | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/home/update_sprites.asm b/home/update_sprites.asm index 5530c2a4..5bb9ee12 100644 --- a/home/update_sprites.asm +++ b/home/update_sprites.asm @@ -2,5 +2,15 @@ UpdateSprites:: ld a, [wUpdateSpritesEnabled] dec a ret nz - homecall _UpdateSprites + ldh a, [hLoadedROMBank] + push af + ld a, BANK(_UpdateSprites) + call BankswitchCommon + ld a, $ff + ld [wUpdateSpritesEnabled], a + call _UpdateSprites + ld a, $1 + ld [wUpdateSpritesEnabled], a + pop af + call BankswitchCommon ret |