From cbe5c305b6d6f16ff0148b0ac49a9fc269652385 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Thu, 12 May 2022 00:22:01 -0700 Subject: [PATCH] GBA: Fix mbVf initialization --- src/gba/gba.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/gba/gba.c b/src/gba/gba.c index a39823666..4bf7721c8 100644 --- a/src/gba/gba.c +++ b/src/gba/gba.c @@ -92,13 +92,14 @@ static void GBAInit(void* cpu, struct mCPUComponent* component) { gba->keysActive = 0; gba->keysLast = 0x400; - gba->rotationSource = 0; - gba->luminanceSource = 0; - gba->rtcSource = 0; - gba->rumble = 0; + gba->rotationSource = NULL; + gba->luminanceSource = NULL; + gba->rtcSource = NULL; + gba->rumble = NULL; - gba->romVf = 0; - gba->biosVf = 0; + gba->romVf = NULL; + gba->mbVf = NULL; + gba->biosVf = NULL; gba->stream = NULL; gba->keyCallback = NULL;