VU Interpreter: Fix uninitialized scalar variable Coverity CID #146964.

This commit is contained in:
refractionpcsx2 2015-09-26 12:35:03 +01:00
parent 166818670e
commit 457362ba84
1 changed files with 3 additions and 0 deletions

View File

@ -85,6 +85,9 @@ static void _vu1Exec(VURegs* VU)
_vu1ExecUpper(VU, ptr); _vu1ExecUpper(VU, ptr);
VU->VI[REG_I].UL = ptr[0]; VU->VI[REG_I].UL = ptr[0];
//Lower not used, set to 0 to fill in the FMAC stall gap
//Could probably get away with just running upper stalls, but lets not tempt fate.
memset(&lregs, 0, sizeof(lregs));
} else { } else {
VU->code = ptr[0]; VU->code = ptr[0];
VU1regs_LOWER_OPCODE[VU->code >> 25](&lregs); VU1regs_LOWER_OPCODE[VU->code >> 25](&lregs);