From 4c71af32121bb810c6272fd93c2b1de9e2af3669 Mon Sep 17 00:00:00 2001 From: harry Date: Sat, 7 Jan 2023 02:51:34 -0500 Subject: [PATCH] Fix for apparent logic error of self-comparison always evaluates to true. Resolves g++ compiler warning. --- src/vsuni.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vsuni.cpp b/src/vsuni.cpp index e29d7e52..62ae2535 100644 --- a/src/vsuni.cpp +++ b/src/vsuni.cpp @@ -171,7 +171,7 @@ void FCEU_VSUniPower(void) { OldReadPPU = GetReadHandler(0x2002); SetReadHandler(0x2002, 0x2002, A2002_MBJ); } - if (GameInfo->vs_ppu == GameInfo->vs_ppu == GIPPU_RC2C05_01 || GameInfo->vs_ppu == GIPPU_RC2C05_02 || GameInfo->vs_ppu == GIPPU_RC2C05_03 || GameInfo->vs_ppu == GIPPU_RC2C05_04) { + if (GameInfo->vs_ppu == GIPPU_RC2C05_01 || GameInfo->vs_ppu == GIPPU_RC2C05_02 || GameInfo->vs_ppu == GIPPU_RC2C05_03 || GameInfo->vs_ppu == GIPPU_RC2C05_04) { OldWritePPU[0] = GetWriteHandler(0x2000); OldWritePPU[1] = GetWriteHandler(0x2001); SetWriteHandler(0x2000, 0x2001, B2000_2001_2C05);