shithub: pokecrystal

Download patch

ref: a4bf94e1d770cadb9a52b94142fd7eb517e4b1df
parent: f6ef0952847e8ee6d2e17da062c899af445087a0
author: Rangi <remy.oukaour+rangi42@gmail.com>
date: Sat Jun 23 19:15:13 EDT 2018

wCurMartEnd - wCurMart = 16

--- a/engine/items/mart.asm
+++ b/engine/items/mart.asm
@@ -110,7 +110,7 @@
 	ld [wMartPointer + 1], a
 	ld hl, wCurMart
 	xor a
-	ld bc, 16
+	ld bc, wCurMartEnd - wCurMart
 	call ByteFill
 	xor a
 	ld [wEngineBuffer5], a