From 1c14389c7fde1dabde26408c5b47c14858dbb567 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Mon, 21 Sep 2015 19:05:59 +0200 Subject: [PATCH] pcsx2:DebugTools: init members in constructor --- pcsx2/DebugTools/Breakpoints.cpp | 9 ++++++++- pcsx2/DebugTools/Breakpoints.h | 3 ++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/pcsx2/DebugTools/Breakpoints.cpp b/pcsx2/DebugTools/Breakpoints.cpp index 105c3610f8..90d24572d6 100644 --- a/pcsx2/DebugTools/Breakpoints.cpp +++ b/pcsx2/DebugTools/Breakpoints.cpp @@ -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; } diff --git a/pcsx2/DebugTools/Breakpoints.h b/pcsx2/DebugTools/Breakpoints.h index 48f79f5563..131eb2e521 100644 --- a/pcsx2/DebugTools/Breakpoints.h +++ b/pcsx2/DebugTools/Breakpoints.h @@ -43,7 +43,8 @@ struct BreakPointCond struct BreakPoint { - BreakPoint() : hasCond(false) {} + BreakPoint() : addr(0), enabled(false), temporary(false), hasCond(false) + {} u32 addr; bool enabled;