From 2cc794e63800946c747f696802460c507522de77 Mon Sep 17 00:00:00 2001 From: "sudonim1@gmail.com" Date: Wed, 3 Oct 2012 01:45:11 +0000 Subject: [PATCH] SPU2-X: Add an assertion that I used (in a more stupid and long winded form) to find the effects memory corruption bug. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5427 96395faa-99c1-11dd-bbfe-3dabce05a288 --- plugins/spu2-x/src/Reverb.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/spu2-x/src/Reverb.cpp b/plugins/spu2-x/src/Reverb.cpp index e72a5b0eb8..0e985587d0 100644 --- a/plugins/spu2-x/src/Reverb.cpp +++ b/plugins/spu2-x/src/Reverb.cpp @@ -37,6 +37,7 @@ __forceinline s32 V_Core::RevbGetIndexer( s32 offset ) pos += EffectsStartA; } + assert(pos >= EffectsStartA && pos <= EffectsEndA); return pos; }