mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-26 03:12:18 -05:00
Fixed trying to emplace in sectionRegistry
without index.
This commit is contained in:
parent
1a9ef29ac5
commit
4cf3172a3d
@ -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"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user