diff --git a/pcsx2/Gif_Unit.h b/pcsx2/Gif_Unit.h index 759ecae27d..f89decc063 100644 --- a/pcsx2/Gif_Unit.h +++ b/pcsx2/Gif_Unit.h @@ -229,7 +229,7 @@ struct Gif_Path { if (gifTag.hasAD) { // Only can be true if GIF_FLG_PACKED bool dblSIGNAL = false; while(gifTag.nLoop && !dblSIGNAL) { - if (curOffset >= curSize) return gsPack; // Exit Early + if (curOffset + 16 > curSize) return gsPack; // Exit Early if (gifTag.curReg() == GIF_REG_A_D) { dblSIGNAL = Gif_HandlerAD(&buffer[curOffset]); }