From 432b060109a3b7da0ad8566bbc75424b1d3ef842 Mon Sep 17 00:00:00 2001 From: refraction Date: Fri, 10 Apr 2009 13:08:19 +0000 Subject: [PATCH] Fix for one small bug, doesnt fix tekken 5 tho :( git-svn-id: http://pcsx2.googlecode.com/svn/trunk@944 96395faa-99c1-11dd-bbfe-3dabce05a288 --- pcsx2/Vif.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pcsx2/Vif.cpp b/pcsx2/Vif.cpp index 8157efef21..48efdf60fc 100644 --- a/pcsx2/Vif.cpp +++ b/pcsx2/Vif.cpp @@ -183,8 +183,12 @@ void __fastcall UNPACK_V3(u32 *dest, T *data, int size) if(_vifRegs->offset == OFFSET_Z) { - writeXYZW(_vifRegs->offset, *dest++, *data++); - _vifRegs->offset = OFFSET_W; + if (size > 0) + { + writeXYZW(_vifRegs->offset, *dest++, *data++); + _vifRegs->offset = OFFSET_W; + size--; + } } if(_vifRegs->offset == OFFSET_W)