shithub: pokecrystal

Download patch

ref: a6cffc04c35a22778fe79f26c0e90b0f7164fb76
parent: 69185e165755f4a03a5bbce9dd87e7e543a0f3ab
author: Rangi <remy.oukaour+rangi42@gmail.com>
date: Thu Dec 30 13:16:22 EST 2021

Use `MAP_LENGTH` in `GetMapPointer`

--- a/home/map.asm
+++ b/home/map.asm
@@ -2023,7 +2023,7 @@
 	; find the cth map within the group
 	dec c
 	ld b, 0
-	ld a, 9
+	ld a, MAP_LENGTH
 	call AddNTimes
 	ret