commit 610292f4d73b22c5ec7e8c56ad3e80d1decc1f29
parent f2aaa533e6a4f5d5804f0d36f670d38d70c8fbb5
Author: fundamental <mark.d.mccurry@gmail.com>
Date: Tue, 6 May 2014 15:28:26 -0400
Bank: Fix Patch Deletion Bug
Fixed invalid upper bound.
Thanks to Christopher Oliver for spotting the bug.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Misc/Bank.cpp b/src/Misc/Bank.cpp
@@ -457,7 +457,7 @@ bool Bank::isPADsynth_used(unsigned int ninstrument)
void Bank::deletefrombank(int pos)
{
- if((pos < 0) || (pos >= (int) banks.size()))
+ if((pos < 0) || (pos >= BANK_SIZE))
return;
ins[pos] = ins_t();
}