diff --git a/pcsx2/GS.h b/pcsx2/GS.h index d7a982cc8e..76ac704a7c 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;