From c2c19d7e9666d5b11c155366676ae1fea3d2f746 Mon Sep 17 00:00:00 2001 From: ramapcsx2 Date: Tue, 26 Jul 2011 17:53:54 +0000 Subject: [PATCH] New GIF: Quick fix from Cotton, fixes ICO and hopefully Tekken 4. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4830 96395faa-99c1-11dd-bbfe-3dabce05a288 --- pcsx2/Gif_Unit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); }