Fixed bug in Vif Unpack Recompiler causing Guitar Hero 3 to crash on the memorycard screen.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4040 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
refraction 2010-11-19 21:33:21 +00:00
parent 86fab4e955
commit d8e80ff5fd
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ _vifT static __fi u8* dVifsetVUptr(uint cl, uint wl, bool isFill) {
u8* startmem = VU.Mem + (vif.tag.addr & (vuMemLimit-0x10)); u8* startmem = VU.Mem + (vif.tag.addr & (vuMemLimit-0x10));
u8* endmem = VU.Mem + vuMemLimit; u8* endmem = VU.Mem + vuMemLimit;
uint length = _vBlock.num * 16; uint length = (_vBlock.num > 0) ? (_vBlock.num * 16) : 4096; // 0 = 256
if (!isFill) { if (!isFill) {
// Accounting for skipping mode: Subtract the last skip cycle, since the skipped part of the run // Accounting for skipping mode: Subtract the last skip cycle, since the skipped part of the run