pcsx2:DebugTools: init members in constructor

This commit is contained in:
Gregory Hainaut 2015-09-21 19:05:59 +02:00
parent 78ed0495ce
commit 1c14389c7f
2 changed files with 10 additions and 2 deletions

View File

@ -45,7 +45,14 @@ u32 __fastcall standardizeBreakpointAddress(u32 addr)
return addr;
}
MemCheck::MemCheck()
MemCheck::MemCheck() :
start(0),
end(0),
cond(MEMCHECK_READWRITE),
result(MEMCHECK_BOTH),
lastPC(0),
lastAddr(0),
lastSize(0)
{
numHits = 0;
}

View File

@ -43,7 +43,8 @@ struct BreakPointCond
struct BreakPoint
{
BreakPoint() : hasCond(false) {}
BreakPoint() : addr(0), enabled(false), temporary(false), hasCond(false)
{}
u32 addr;
bool enabled;