From 329be68f574d1d09c1ae1eaaf4a4d1946330aafb Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 1 May 2016 08:04:15 -0700 Subject: [PATCH] Fix error when disabled. We want to return a reference here, so let's always return. --- Core/TextureReplacer.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Core/TextureReplacer.cpp b/Core/TextureReplacer.cpp index 742f9d1b49..391a4776ed 100644 --- a/Core/TextureReplacer.cpp +++ b/Core/TextureReplacer.cpp @@ -200,10 +200,8 @@ u32 TextureReplacer::ComputeHash(u32 addr, int bufw, int w, int h, GETextureForm } ReplacedTexture &TextureReplacer::FindReplacement(u64 cachekey, u32 hash, int w, int h) { - _assert_msg_(G3D, enabled_, "Replacement not enabled"); - // Only actually replace if we're replacing. We might just be saving. - if (!g_Config.bReplaceTextures) { + if (!Enabled() || !g_Config.bReplaceTextures) { return none_; }