From b63590152a218c22c9ac416bb3e5c71bca4dc75a Mon Sep 17 00:00:00 2001 From: refractionpcsx2 Date: Sat, 26 Sep 2015 13:55:50 +0100 Subject: [PATCH] Vif: Fixed logically dead code (not that it mattered) -Coverity CID 146826: In vifExecQueue(int): Code can never be reached because of a logical contradiction (CWE-561) --- pcsx2/Vif_Codes.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcsx2/Vif_Codes.cpp b/pcsx2/Vif_Codes.cpp index 582841b8ac..c011a00b36 100644 --- a/pcsx2/Vif_Codes.cpp +++ b/pcsx2/Vif_Codes.cpp @@ -46,8 +46,8 @@ __ri void vifExecQueue(int idx) if (!idx) startcycles = VU0.cycle; else startcycles = VU1.cycle; - if (!idx) vu0ExecMicro(GetVifX.queued_pc); - else vu1ExecMicro(GetVifX.queued_pc); + if (!idx) vu0ExecMicro(vif0.queued_pc); + else vu1ExecMicro(vif1.queued_pc); ///NOTE: Shadowman 2 has SPS with this, uncommenting the correct code fixes it if (!idx) { startcycles = ((VU0.cycle-startcycles) + ( vif0ch.qwc - (vif0.vifpacketsize >> 2) )); CPU_INT(VIF_VU0_FINISH, 1/*startcycles * BIAS*/); }