aboutsummaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
Diffstat (limited to 'base')
-rw-r--r--base/plugins.cpp3
-rw-r--r--base/plugins.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/base/plugins.cpp b/base/plugins.cpp
index fc5f1f4046..c0ff6f6dfa 100644
--- a/base/plugins.cpp
+++ b/base/plugins.cpp
@@ -342,7 +342,8 @@ void PluginManager::loadFirstPlugin() { //TODO: rename? It's not quite clear tha
}
bool PluginManager::loadNextPlugin() {
- if (_nonEnginePlugs == _allPlugs.size()) return false; //There are no Engine Plugins in this case.
+ if (_nonEnginePlugs == _allPlugs.size())
+ return false; //There are no Engine Plugins in this case.
//To ensure only one engine plugin is loaded at a time, we unload all engine plugins before trying to load a new one.
unloadPluginsExcept(PLUGIN_TYPE_ENGINE, NULL);
++_currentPlugin;
diff --git a/base/plugins.h b/base/plugins.h
index 717e18a4a7..84b1af5599 100644
--- a/base/plugins.h
+++ b/base/plugins.h
@@ -291,7 +291,7 @@ private:
bool _skipStaticPlugs;
- int _nonEnginePlugs;
+ uint _nonEnginePlugs;
bool tryLoadPlugin(Plugin *plugin);