Fixed trying to emplace in sectionRegistry without index.

This commit is contained in:
Malkierian 2023-05-15 17:40:10 -07:00
parent 1a9ef29ac5
commit 4cf3172a3d
2 changed files with 1 additions and 2 deletions

View File

@ -872,7 +872,7 @@ void SaveManager::AddSaveFunction(const std::string& name, int version, SaveFunc
}
SaveFuncInfo sfi = { name, version, func, saveWithBase, parentSection };
sectionSaveHandlers.emplace(index, sfi);
sectionRegistry.emplace(name);
sectionRegistry.emplace(name, index);
}
void SaveManager::AddPostFunction(const std::string& name, PostFunc func) {

View File

@ -28,7 +28,6 @@ typedef struct {
#include <tuple>
#include <functional>
#include <vector>
#include <set>
#include <filesystem>
#include "thread-pool/BS_thread_pool.hpp"