diff --git a/soh/soh/SaveManager.cpp b/soh/soh/SaveManager.cpp index 97f09bd74..d5f82123c 100644 --- a/soh/soh/SaveManager.cpp +++ b/soh/soh/SaveManager.cpp @@ -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) { diff --git a/soh/soh/SaveManager.h b/soh/soh/SaveManager.h index e4c11b838..17ac8715c 100644 --- a/soh/soh/SaveManager.h +++ b/soh/soh/SaveManager.h @@ -28,7 +28,6 @@ typedef struct { #include #include #include -#include #include #include "thread-pool/BS_thread_pool.hpp"