summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2020-11-03 21:01:31 +0000
committerSadie Powell <sadie@witchery.services>2020-11-03 21:01:31 +0000
commit3151d60c1ecc9462e4c335282ee6c31672f45111 (patch)
treedeaa65555f00eb0e336a78683577d0026922fd80
parentd76f856fc9d97af68c9cbad0aca9d5505506b4d9 (diff)
Only assign NewServices once the duplicate check is done.
-rw-r--r--src/modules.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index 27431e3fb..17804a48e 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -480,12 +480,12 @@ void ModuleManager::LoadAll()
{
ConfigTag* tag = i->second;
std::string name = ExpandModName(tag->getString("name"));
- this->NewServices = &servicemap[name];
// Skip modules which are already loaded.
if (Modules.find(name) != Modules.end())
continue;
+ this->NewServices = &servicemap[name];
std::cout << "[" << con_green << "*" << con_reset << "] Loading module:\t" << con_green << name << con_reset << std::endl;
if (!this->Load(name, true))
{