Fix for Justice League Heroes not going ingame.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4408 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
refraction 2011-03-10 16:35:01 +00:00
parent 9586e38dd4
commit 5cd321e6ff
1 changed files with 3 additions and 1 deletions

View File

@ -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;