From ccacbedc50b575271d456524366efe4a12732015 Mon Sep 17 00:00:00 2001 From: refraction Date: Thu, 9 Apr 2009 23:20:13 +0000 Subject: [PATCH] last silly mistake, promise :P git-svn-id: http://pcsx2.googlecode.com/svn/trunk@938 96395faa-99c1-11dd-bbfe-3dabce05a288 --- pcsx2/Vif.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcsx2/Vif.cpp b/pcsx2/Vif.cpp index 3ae921089d..147f450188 100644 --- a/pcsx2/Vif.cpp +++ b/pcsx2/Vif.cpp @@ -400,7 +400,7 @@ void __fastcall UNPACK_V3(u32 *dest, T *data, int size) _UNPACKpart(_vifRegs->offset, *dest++, *data++); size--; } - if(_vifRegs->offset == OFFSET_Z) + if(_vifRegs->offset == OFFSET_Z && size > 0) { _UNPACKpart(_vifRegs->offset, *dest++, *data++); }