From 98f99e1e3c70f3a6911fd2f40a89391ae166014a Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Fri, 31 May 2013 22:40:32 -0700 Subject: [PATCH] Fix some initialization order warnings. --- Core/HLE/sceAtrac.cpp | 4 ++-- Core/Util/BlockAllocator.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Core/HLE/sceAtrac.cpp b/Core/HLE/sceAtrac.cpp index 14f0eac345..464942f48f 100644 --- a/Core/HLE/sceAtrac.cpp +++ b/Core/HLE/sceAtrac.cpp @@ -100,9 +100,9 @@ struct AtracLoopInfo { }; struct Atrac { - Atrac() : atracID(-1), data_buf(0), decodePos(0), decodeEnd(0), atracChannels(2), atracOutputChannels(2), loopNum(0), + Atrac() : atracID(-1), data_buf(0), decodePos(0), decodeEnd(0), atracChannels(2), atracOutputChannels(2), atracBitrate(64), atracBytesPerFrame(0), atracBufSize(0), - currentSample(0), endSample(-1), firstSampleoffset(0), loopinfoNum(0) { + currentSample(0), endSample(-1), firstSampleoffset(0), loopinfoNum(0), loopNum(0) { memset(&first, 0, sizeof(first)); memset(&second, 0, sizeof(second)); #ifdef USE_FFMPEG diff --git a/Core/Util/BlockAllocator.cpp b/Core/Util/BlockAllocator.cpp index f3bba09736..0f181aa5c8 100644 --- a/Core/Util/BlockAllocator.cpp +++ b/Core/Util/BlockAllocator.cpp @@ -21,7 +21,7 @@ // Slow freaking thing but works (eventually) :) -BlockAllocator::BlockAllocator(int grain) : grain_(grain), top_(NULL), bottom_(NULL) +BlockAllocator::BlockAllocator(int grain) : bottom_(NULL), top_(NULL), grain_(grain) { }