From ca8437dd0aa91e5479dfbca06b14bbe51058d156 Mon Sep 17 00:00:00 2001 From: cottonvibes <cottonvibes@96395faa-99c1-11dd-bbfe-3dabce05a288> Date: Sat, 19 Sep 2009 04:25:17 +0000 Subject: [PATCH] fixed a bug from my last revision... git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1869 96395faa-99c1-11dd-bbfe-3dabce05a288 --- pcsx2/GS.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pcsx2/GS.h b/pcsx2/GS.h index d7a982cc8..76ac704a7 100644 --- a/pcsx2/GS.h +++ b/pcsx2/GS.h @@ -97,10 +97,8 @@ struct GIFPath __forceinline void PrepRegs(bool doPrep); __forceinline void SetTag(const void* mem); - __forceinline bool StepReg() - { - u32 numRegs = ((tag.nreg-1)&0xf)+1; - if ((++curreg & 0xf) == numRegs) { + __forceinline bool StepReg() { + if ((++curreg & 0xf) == tag.nreg) { curreg = 0; if (--tag.nloop == 0) { return false;