diff --git a/lcUI/operationloader.cpp b/lcUI/operationloader.cpp index d2da420a..27344c14 100644 --- a/lcUI/operationloader.cpp +++ b/lcUI/operationloader.cpp @@ -28,7 +28,7 @@ std::string findLuaFolder(std::string luaPath) if (QFileInfo{QString{luaPath.c_str()} + operationsLua}.exists()) return luaPath; - QDirIterator it(luaPath, QDirIterator::Subdirectories); + QDirIterator it(QString{luaPath.c_str()}, QDirIterator::Subdirectories); // Iterate through the directory using the QDirIterator while (it.hasNext())