From a153181e4a56dfcdfa5a6ccc15c2c31751f7ecd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Mon, 26 Mar 2018 12:33:36 +0200 Subject: [PATCH] Don't leave "reduceHash_" uninitialized. Probably won't help #10796 though.. --- Core/TextureReplacer.cpp | 2 +- Core/TextureReplacer.h | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Core/TextureReplacer.cpp b/Core/TextureReplacer.cpp index d6d1b70166..3090df864b 100644 --- a/Core/TextureReplacer.cpp +++ b/Core/TextureReplacer.cpp @@ -35,7 +35,7 @@ static const std::string NEW_TEXTURE_DIR = "new/"; static const int VERSION = 1; static const int MAX_MIP_LEVELS = 12; // 12 should be plenty, 8 is the max mip levels supported by the PSP. -TextureReplacer::TextureReplacer() : enabled_(false), allowVideo_(false), ignoreAddress_(false), hash_(ReplacedTextureHash::QUICK) { +TextureReplacer::TextureReplacer() { none_.alphaStatus_ = ReplacedTextureAlpha::UNKNOWN; } diff --git a/Core/TextureReplacer.h b/Core/TextureReplacer.h index 4def1506fa..49606c0164 100644 --- a/Core/TextureReplacer.h +++ b/Core/TextureReplacer.h @@ -196,13 +196,13 @@ protected: void PopulateReplacement(ReplacedTexture *result, u64 cachekey, u32 hash, int w, int h); SimpleBuf saveBuf; - bool enabled_; - bool allowVideo_; - bool ignoreAddress_; - bool reduceHash_; + bool enabled_ = false; + bool allowVideo_ = false; + bool ignoreAddress_ = false; + bool reduceHash_ = false; std::string gameID_; std::string basePath_; - ReplacedTextureHash hash_; + ReplacedTextureHash hash_ = ReplacedTextureHash::QUICK; typedef std::pair WidthHeightPair; std::unordered_map hashranges_; std::unordered_map aliases_;