Removed some left-over (I think!) code from unloadPluginsExcept() that was

causing ScummVM to crash for me.

svn-id: r24155
This commit is contained in:
Torbjörn Andersson 2006-10-07 01:56:31 +00:00
parent e4c9d0a4e3
commit f11c3d1f26

View File

@ -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 {