sort packs in PacksManager::assemble

This commit is contained in:
MihailRis 2025-02-01 16:49:48 +03:00
parent e5f9efd87a
commit 3fb16ab50e

View File

@ -2,6 +2,7 @@
#include <queue>
#include <sstream>
#include <algorithm>
#include "util/listutil.hpp"
@ -124,7 +125,9 @@ std::vector<std::string> PacksManager::assemble(
std::queue<const ContentPack*> queue;
std::queue<const ContentPack*> queue2;
for (auto& name : names) {
std::sort(allNames.begin(), allNames.end());
for (auto& name : allNames) {
auto found = packs.find(name);
if (found == packs.end()) {
throw contentpack_error(name, fs::path(""), "pack not found");