ZynAddSubFX: fixed logical error

Fixed logical nonsense reported when compiling with -Wlogical-op

Closes #80.
This commit is contained in:
Tobias Doerffel
2014-01-22 00:11:12 +01:00
parent b1a47db7d8
commit a6b3f2a123

View File

@@ -1076,7 +1076,7 @@ void Part::setPpanning(char Ppanning_)
*/
void Part::setkititemstatus(int kititem, int Penabled_)
{
if((kititem == 0) && (kititem >= NUM_KIT_ITEMS))
if((kititem == 0) || (kititem >= NUM_KIT_ITEMS))
return; //nonexistent kit item and the first kit item is always enabled
kit[kititem].Penabled = Penabled_;