From bcecb8a88f61c4708ea4605e347361fdc9754a5a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Hauke=20J=C3=BCrgen=20M=C3=B6nck?=
 <moenck@zedat.fu-berlin.de>
Date: Mon, 17 Dec 2018 13:29:13 +0100
Subject: [PATCH] Fixed searchDirectoriesForPlugins

replace_extension() operates in-place. Hence searchDirectoriesForPlugins was previously returning the path without the suffix (e.g. .dll) due to it being removed by replace_extension in the if statement
---
 SrcBehaviorLoader/PluginLoader.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/SrcBehaviorLoader/PluginLoader.cpp b/SrcBehaviorLoader/PluginLoader.cpp
index 433c209..4cb593d 100644
--- a/SrcBehaviorLoader/PluginLoader.cpp
+++ b/SrcBehaviorLoader/PluginLoader.cpp
@@ -211,7 +211,7 @@ std::vector<std::string> PluginLoader::searchDirectoriesForPlugins(std::vector<s
                     auto p = e.path();
                     if (is_shared_library(p) && p.replace_extension().extension() == suffix)
                     {
-                        filesFromFolders.push_back(p.string());
+                        filesFromFolders.push_back(e.path().string());
                     }
                 }
             }
-- 
GitLab