Fixed trying to emplace in sectionRegistry without index.
This commit is contained in:
@@ -872,7 +872,7 @@ void SaveManager::AddSaveFunction(const std::string& name, int version, SaveFunc
|
|||||||
}
|
}
|
||||||
SaveFuncInfo sfi = { name, version, func, saveWithBase, parentSection };
|
SaveFuncInfo sfi = { name, version, func, saveWithBase, parentSection };
|
||||||
sectionSaveHandlers.emplace(index, sfi);
|
sectionSaveHandlers.emplace(index, sfi);
|
||||||
sectionRegistry.emplace(name);
|
sectionRegistry.emplace(name, index);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SaveManager::AddPostFunction(const std::string& name, PostFunc func) {
|
void SaveManager::AddPostFunction(const std::string& name, PostFunc func) {
|
||||||
|
|||||||
@@ -28,7 +28,6 @@ typedef struct {
|
|||||||
#include <tuple>
|
#include <tuple>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <set>
|
|
||||||
#include <filesystem>
|
#include <filesystem>
|
||||||
#include "thread-pool/BS_thread_pool.hpp"
|
#include "thread-pool/BS_thread_pool.hpp"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user