From b8beaeffb752e4b8913b914d979df32ff3528f02 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 15 Apr 2015 22:38:53 -0400 Subject: [PATCH] N64 Class: Initialize variable before passing in initializer list Silences an uninitialized variable warning. --- Source/Project64/N64 System/N64 Class.cpp | 1 + Source/Project64/N64 System/N64 Class.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Project64/N64 System/N64 Class.cpp b/Source/Project64/N64 System/N64 Class.cpp index 8f6726406..002c98fa7 100644 --- a/Source/Project64/N64 System/N64 Class.cpp +++ b/Source/Project64/N64 System/N64 Class.cpp @@ -30,6 +30,7 @@ CN64System::CN64System ( CPlugins * Plugins, bool SavesReadOnly ) : m_EndEmulation(false), m_bCleanFrameBox(true), m_bInitilized(false), + m_NextTimer(0), m_SystemTimer(m_NextTimer), m_DMAUsed(false), m_CPU_Handle(NULL), diff --git a/Source/Project64/N64 System/N64 Class.h b/Source/Project64/N64 System/N64 Class.h index b94ef9899..5269c24b1 100644 --- a/Source/Project64/N64 System/N64 Class.h +++ b/Source/Project64/N64 System/N64 Class.h @@ -137,11 +137,11 @@ private: CAudio m_Audio; CSpeedLimitor m_Limitor; bool m_InReset; + int m_NextTimer; CSystemTimer m_SystemTimer; bool m_bCleanFrameBox; bool m_bInitilized; bool m_RspBroke; - int m_NextTimer; bool m_DMAUsed; DWORD m_Buttons[4]; BOOL m_TestTimer;