From 86d9564c1cd3853a58d6396c5bed0d402446ece5 Mon Sep 17 00:00:00 2001 From: PhoenixBound Date: Mon, 17 Feb 2025 17:13:47 -0600 Subject: [PATCH] CompressedGraphicsModule: fix bad FREE_RANGES end address FREE_RANGES are inclusive address ranges, and E1F203 is the address of the spritemap data for the hamburger shop map marker. In rare circumstances, this could cause the very first byte (Y position) of the first portion of the sprite to be overwritten with arbitrary data, if that block of free space was filled all the way to the end. Probably fixes #316 --- coilsnake/modules/eb/CompressedGraphicsModule.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coilsnake/modules/eb/CompressedGraphicsModule.py b/coilsnake/modules/eb/CompressedGraphicsModule.py index e0d5633a..0f170b56 100644 --- a/coilsnake/modules/eb/CompressedGraphicsModule.py +++ b/coilsnake/modules/eb/CompressedGraphicsModule.py @@ -89,7 +89,7 @@ class CompressedGraphicsModule(EbModule): NAME = "Compressed Graphics" FREE_RANGES = [(0x2021a8, 0x20ed02), # Town Map data (0x214ec1, 0x21ae7b), # Company Logos, "Produced by" and "Presented by", and Gas Station - (0x21ea50, 0x21f203)] # Town map icon graphics and palette + (0x21ea50, 0x21f202)] # Town map icon graphics and palette def __init__(self): super(CompressedGraphicsModule, self).__init__()