summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/PluginManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/PluginManager.cpp b/source/PluginManager.cpp
index eb347968a..a557bdc03 100644
--- a/source/PluginManager.cpp
+++ b/source/PluginManager.cpp
@@ -75,9 +75,9 @@ void cPluginManager::FindPlugins(void)
AStringList Files = GetDirectoryContents(PluginsPath.c_str());
for (AStringList::const_iterator itr = Files.begin(); itr != Files.end(); ++itr)
{
- if (!cFile::IsFolder(PluginsPath + *itr))
+ if ((*itr == ".") || (*itr == "..") || (!cFile::IsFolder(PluginsPath + *itr)))
{
- // We only want folders
+ // We only want folders, and don't want "." or ".."
continue;
}