diff options
-rw-r--r-- | src/modules/plugins/newplugins.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/modules/plugins/newplugins.cpp b/src/modules/plugins/newplugins.cpp index b03a5d8d34..3a07390076 100644 --- a/src/modules/plugins/newplugins.cpp +++ b/src/modules/plugins/newplugins.cpp @@ -103,13 +103,9 @@ bool hasMuuid(const BASIC_PLUGIN_INFO& bpi, const MUUID& uuid) int getDefaultPluginIdx(const MUUID& muuid)
{
- for (int i=0; i < SIZEOF(pluginDefault); i++) {
- if (pluginDefault[i].stdplugname == NULL)
- break;
-
+ for (int i=0; i < SIZEOF(pluginDefault); i++)
if (equalUUID(muuid, pluginDefault[i].uuid))
return i;
- }
return -1;
}
|