aboutsummaryrefslogtreecommitdiff
path: root/src/ppusim/sim.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ppusim/sim.c')
-rw-r--r--src/ppusim/sim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ppusim/sim.c b/src/ppusim/sim.c
index be5fbeb..14d79a7 100644
--- a/src/ppusim/sim.c
+++ b/src/ppusim/sim.c
@@ -24,7 +24,7 @@ void hh_ppu_init() {
g_hh_ppusim_threads = malloc(sizeof(pthread_t) * g_hh_ppusim_core_count);
g_hh_ppusim_vram = malloc(sizeof(hh_ppu_data_t) * 0xffff);
- memset(g_hh_ppusim_vram, 0x0000, 0xffff);
+ memset(g_hh_ppusim_vram, 0x0000, 0xffff * sizeof(hh_ppu_data_t));
}
void hh_ppu_load_tilemap() {