From 4cf3172a3d83f95b630df90535fcfc5376a23bdf Mon Sep 17 00:00:00 2001 From: Malkierian Date: Mon, 15 May 2023 17:40:10 -0700 Subject: [PATCH] Fixed trying to emplace in `sectionRegistry` without index. --- soh/soh/SaveManager.cpp | 2 +- soh/soh/SaveManager.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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"