summaryrefslogtreecommitdiffstats
path: root/source/PluginManager.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-09-21 19:45:11 +0200
committermadmaxoft <github@xoft.cz>2013-09-21 19:45:11 +0200
commit744b3be4549719e4c8e7446849a679ad31c17050 (patch)
tree525e475fe9ff4999f574f81eac66ca48486b2614 /source/PluginManager.cpp
parentImplemented cWebAdmin:GetMemoryUsage() on Linux proper. (diff)
downloadcuberite-744b3be4549719e4c8e7446849a679ad31c17050.tar
cuberite-744b3be4549719e4c8e7446849a679ad31c17050.tar.gz
cuberite-744b3be4549719e4c8e7446849a679ad31c17050.tar.bz2
cuberite-744b3be4549719e4c8e7446849a679ad31c17050.tar.lz
cuberite-744b3be4549719e4c8e7446849a679ad31c17050.tar.xz
cuberite-744b3be4549719e4c8e7446849a679ad31c17050.tar.zst
cuberite-744b3be4549719e4c8e7446849a679ad31c17050.zip
Diffstat (limited to 'source/PluginManager.cpp')
-rw-r--r--source/PluginManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/PluginManager.cpp b/source/PluginManager.cpp
index e7cac457c..68cb6e40b 100644
--- a/source/PluginManager.cpp
+++ b/source/PluginManager.cpp
@@ -75,7 +75,7 @@ void cPluginManager::FindPlugins(void)
AStringList Files = GetDirectoryContents(PluginsPath.c_str());
for (AStringList::const_iterator itr = Files.begin(); itr != Files.end(); ++itr)
{
- if (!cFile::IsFolder(*itr))
+ if (!cFile::IsFolder(PluginsPath + *itr))
{
// We only want folders
continue;
@@ -84,7 +84,7 @@ void cPluginManager::FindPlugins(void)
// Add plugin name/directory to the list
if (m_Plugins.find(*itr) == m_Plugins.end())
{
- m_Plugins[ *itr ] = NULL;
+ m_Plugins[*itr] = NULL;
}
}
}