shithub: rgbds

Download patch

ref: 1e16a0ff85139dabf99c4cf7f6f92cd9921460f9
parent: 0588e42520c7882c27cd67fd3ac518f99fc93adf
parent: c485ad94f20401f6be5d76fb3772b5b34defd223
author: AntonioND <[email protected]>
date: Sun Feb 26 16:45:53 EST 2017

Merge pull request #121 from TwitchPlaysPokemon/master

Fix WRAM0 symbols returning bank 512 to BANK() expression in linker

--- a/src/link/patch.c
+++ b/src/link/patch.c
@@ -68,6 +68,7 @@
 		errx(1, "*INTERNAL* UNKNOWN SYMBOL TYPE");
 	}
 
+	if (nBank == BANK_WRAM0) return 0;
 	if (nBank >= BANK_WRAMX && nBank <= (BANK_WRAMX+6))
 		return nBank - BANK_WRAMX + 1;
 	if (nBank >= BANK_VRAM && nBank <= (BANK_VRAM+1))