diff --git a/src/framework/core/modulemanager.cpp b/src/framework/core/modulemanager.cpp index d6dd16ae3a..d1ddfe8d40 100644 --- a/src/framework/core/modulemanager.cpp +++ b/src/framework/core/modulemanager.cpp @@ -171,7 +171,10 @@ void ModuleManager::enableAutoReload() { for (const auto& path : g_resources.listDirectoryFiles("/" + module->getName(), true, false, true)) { ticks_t time = g_resources.getFileTime(path); if (time > 0) { - data.files.emplace_back(std::make_shared(path, time)); + auto fileInfo = std::make_shared(); + fileInfo->path = path; + fileInfo->time = time; + data.files.emplace_back(fileInfo); hasFile = true; } } @@ -204,4 +207,4 @@ void ModuleManager::enableAutoReload() { } } }, 750); -} \ No newline at end of file +}