From 5cd321e6ffccb46eab5b8ad7ad5e8f0a984a2d12 Mon Sep 17 00:00:00 2001 From: refraction Date: Thu, 10 Mar 2011 16:35:01 +0000 Subject: [PATCH] Fix for Justice League Heroes not going ingame. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4408 96395faa-99c1-11dd-bbfe-3dabce05a288 --- pcsx2/ps2/GIFpath.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pcsx2/ps2/GIFpath.cpp b/pcsx2/ps2/GIFpath.cpp index 27859677cd..1d03bbde0c 100644 --- a/pcsx2/ps2/GIFpath.cpp +++ b/pcsx2/ps2/GIFpath.cpp @@ -804,7 +804,9 @@ __fi int GIFPath::CopyTag(const u128* pMem128, u32 size) GifTagLog("IMAGE Mode EOP %x", tag.EOP); if(pathidx == GIF_PATH_3 && gifRegs.stat.IMT) { - int len = aMin((int)nloop, 8); + //Size or Nloop can be smaller, before we enforce a maximum packet size of 8, we need to know which is true. + int len = aMin(size, nloop); + len = aMin(len, 8); MemCopy_WrappedDest( pMem128, RingBuffer.m_Ring, ringpos, RingBufferSize, len ); pMem128 += len;