SuperVU: Initialize class members

CID 146985 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR)8.
uninit_member: Non-static class member vuxy is not initialized in this
constructor nor in any functions that it calls
This commit is contained in:
Akash 2016-09-03 20:24:16 +05:30
parent dc874a99cd
commit 022e650dc6
1 changed files with 5 additions and 1 deletions

View File

@ -304,13 +304,17 @@ VuBaseBlock::VuBaseBlock()
type = 0;
endpc = 0;
cycles = 0;
pcode = NULL;
id = 0;
memzero(pChildJumps);
memzero(startregs);
memzero(endregs);
allocX86Regs = nStartx86 = nEndx86 = -1;
prevFlagsOutOfBlock = 0;
startpc = 0;
vuxy = 0;
vuxyz = 0;
pendcode = nullptr;
pcode = nullptr;
}
#define SUPERVU_STACKSIZE 0x1000