From 5649b1a56d667bca3dd8ffe3b76828ad11cf2ce4 Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Sat, 28 Jun 2025 18:55:28 +0200 Subject: [PATCH] actortable: The demo actor table was reading out of bounds The laoder code was behaving correctly, but the size value was off-by-one --- BUGS.md | 4 ---- src/actortables.s | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/BUGS.md b/BUGS.md index a2a242e..c7afc1d 100644 --- a/BUGS.md +++ b/BUGS.md @@ -1,9 +1,5 @@ # Known Bugs -## Map actor loads are happening far out of bounds - -This causes random values being read as actor data. -This bug only manifested itself as code went beyond 0x22a2. diff --git a/src/actortables.s b/src/actortables.s index 511da3d..1479dbb 100644 --- a/src/actortables.s +++ b/src/actortables.s @@ -1,7 +1,7 @@ #include "unit_demo.s" default_map_actor_table: -.db 19 ; size +.db 18 ; size dw unit_demo_2 dw unit_demo_3 dw unit_demo_3 -- 2.30.2