fix duplicate module check
This commit is contained in:
@@ -65,7 +65,7 @@ void App::load(std::string lib) {
|
||||
|
||||
for(auto it = modules.begin(); it != modules.end(); it++) {
|
||||
|
||||
if((*it)->getName() != m->getName()) {
|
||||
if((*it)->getName() == m->getName()) {
|
||||
std::cout << "Module \"" << m->getName() << "\" is already loaded!\n";
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user