From ea2b59e64d11a2698d04c7b8fc805259c7d78187 Mon Sep 17 00:00:00 2001 From: drmortalwombat <90205530+drmortalwombat@users.noreply.github.com> Date: Sun, 28 Nov 2021 15:17:39 +0100 Subject: [PATCH] Fix sprite index in vic.c --- include/c64/vic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/c64/vic.c b/include/c64/vic.c index 843b5b5..e4632c0 100644 --- a/include/c64/vic.c +++ b/include/c64/vic.c @@ -8,8 +8,8 @@ void vic_setbank(char bank) void vic_sprxy(byte s, int x, int y) { - vic.spr_pos[0].y = y; - vic.spr_pos[0].x = x & 0xff; + vic.spr_pos[s].y = y; + vic.spr_pos[s].x = x & 0xff; if (x & 0x100) vic.spr_msbx |= 1 << s; else