diff --git a/src/tms9918.cpp b/src/tms9918.cpp index b1ac094..0144a39 100644 --- a/src/tms9918.cpp +++ b/src/tms9918.cpp @@ -419,7 +419,7 @@ uint16_t vdp_sprite_init(uint8_t name, uint8_t priority, uint8_t color) if(sprite_size_sel) writeByteToVRAM(4*name); else - writeByteToVRAM(4*name); + writeByteToVRAM(name); writeByteToVRAM(0x80 | (color & 0xF)); return addr; } @@ -588,4 +588,4 @@ int vdp_init_g2(bool big_sprites, bool scale_sprites) int vdp_init_multicolor() { return vdp_init(VDP_MODE_MULTICOLOR, 0, 0, 0); -} \ No newline at end of file +}