diff options
author | Torbjörn Andersson | 2006-10-07 01:56:31 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2006-10-07 01:56:31 +0000 |
commit | f11c3d1f26a1085cb37591da31aa58d2b0a3b076 (patch) | |
tree | 25483441c4d21a6d6f5ca052feb6be74a8d2f316 | |
parent | e4c9d0a4e3f3e57ac441eb8a21f1ea1ac142a5cd (diff) | |
download | scummvm-rg350-f11c3d1f26a1085cb37591da31aa58d2b0a3b076.tar.gz scummvm-rg350-f11c3d1f26a1085cb37591da31aa58d2b0a3b076.tar.bz2 scummvm-rg350-f11c3d1f26a1085cb37591da31aa58d2b0a3b076.zip |
Removed some left-over (I think!) code from unloadPluginsExcept() that was
causing ScummVM to crash for me.
svn-id: r24155
-rw-r--r-- | base/plugins.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/base/plugins.cpp b/base/plugins.cpp index 326b56be82..8738fbe26f 100644 --- a/base/plugins.cpp +++ b/base/plugins.cpp @@ -204,9 +204,7 @@ void PluginManager::unloadPlugins() { void PluginManager::unloadPluginsExcept(const Plugin *plugin) { Plugin *found = NULL; - uint i; - for (PluginList::iterator p = _plugins.begin(); p != _plugins.end(); ++p) - for (i = 0; i < _plugins.size(); i++) { + for (PluginList::iterator p = _plugins.begin(); p != _plugins.end(); ++p) { if (*p == plugin) { found = *p; } else { |