Fix error when disabled.

We want to return a reference here, so let's always return.
This commit is contained in:
Unknown W. Brackets 2016-05-01 08:04:15 -07:00
parent 450554450f
commit 329be68f57

View File

@ -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_;
}