From 12cba61302ef9f17761ab9357709691ae289cf01 Mon Sep 17 00:00:00 2001 From: arcum42 Date: Fri, 3 Apr 2009 23:18:11 +0000 Subject: [PATCH] Fix typo in r900. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@902 96395faa-99c1-11dd-bbfe-3dabce05a288 --- pcsx2/Vif.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcsx2/Vif.cpp b/pcsx2/Vif.cpp index 2fd308ce78..0f778f212a 100644 --- a/pcsx2/Vif.cpp +++ b/pcsx2/Vif.cpp @@ -431,8 +431,8 @@ void __fastcall UNPACK_V2_16s(u32 *dest, u32 *data, int size) void __fastcall UNPACK_V2_16u(u32 *dest, u32 *data, int size) { u16 *sdata = (u16*)data; - if (size > 0) if (_UNPACKpart(OFFSET_X, dest++, *sdata++)); - if (size > 0) if (_UNPACKpart(OFFSET_Y, dest++, *sdata--)); + if (size > 0) if (_UNPACKpart(OFFSET_X, dest++, *sdata++)) size--; + if (size > 0) if (_UNPACKpart(OFFSET_Y, dest++, *sdata--)) size--; _UNPACKpart(OFFSET_Z, dest++, *sdata++); _UNPACKpart(OFFSET_W, dest , *sdata); if (_vifRegs->offset == 4) _vifRegs->offset = 0;