diff options
| author | 2022-03-24 01:49:26 +0000 | |
|---|---|---|
| committer | 2022-03-24 01:55:27 +0000 | |
| commit | fb2a967575725f92744d7b6ca3431fc2a4b5b1c7 (patch) | |
| tree | 91e96271b669d470ad0c8a6f17f055b01c537e70 /src/modulemanager.cpp | |
| parent | Fix GNU++98 compatibility. (diff) | |
Fix allowing modules to have a path on Windows.
Diffstat (limited to 'src/modulemanager.cpp')
| -rw-r--r-- | src/modulemanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modulemanager.cpp b/src/modulemanager.cpp index cac126358..c8ce6b57e 100644 --- a/src/modulemanager.cpp +++ b/src/modulemanager.cpp @@ -30,7 +30,7 @@ bool ModuleManager::Load(const std::string& modname, bool defer) { /* Don't allow people to specify paths for modules, it doesn't work as expected */ - if (modname.find('/') != std::string::npos) + if (modname.find_first_of("\\/") != std::string::npos) { LastModuleError = "You can't load modules with a path: " + modname; return false; |
