diff --git a/distrho/src/DistrhoPluginInternal.hpp b/distrho/src/DistrhoPluginInternal.hpp index 06259359..c8632840 100644 --- a/distrho/src/DistrhoPluginInternal.hpp +++ b/distrho/src/DistrhoPluginInternal.hpp @@ -303,7 +303,7 @@ public: void setState(const char* const key, const char* const value) { - DISTRHO_SAFE_ASSERT_RETURN(fData != nullptr && index < fData->stateCount,); + DISTRHO_SAFE_ASSERT_RETURN(fData != nullptr,); DISTRHO_SAFE_ASSERT_RETURN(key != nullptr && key[0] != '\0',); DISTRHO_SAFE_ASSERT_RETURN(value != nullptr,); diff --git a/distrho/src/DistrhoPluginLV2.cpp b/distrho/src/DistrhoPluginLV2.cpp index 8bd690cd..ffb7591c 100644 --- a/distrho/src/DistrhoPluginLV2.cpp +++ b/distrho/src/DistrhoPluginLV2.cpp @@ -764,7 +764,7 @@ private: fPlugin.setState(key, newValue); // check if we want to save this key - if (! fPlugin.wantsStateKey(key)) + if (! fPlugin.wantStateKey(key)) return; // check if key already exists