Make sure the effect ID is valid (non-blank)
This commit is contained in:
parent
3391203e93
commit
07f965a057
|
@ -675,6 +675,12 @@ int EffectManager::GetRealtimeLatency()
|
|||
|
||||
Effect *EffectManager::GetEffect(const PluginID & ID)
|
||||
{
|
||||
// Must have a "valid" ID
|
||||
if (ID.IsEmpty())
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// TODO: This is temporary and should be redone when all effects are converted
|
||||
if (mEffects.find(ID) == mEffects.end())
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue