From 0a24467862b831b3c09a7c0db0309d020afbc771 Mon Sep 17 00:00:00 2001 From: powerof3 Date: Sat, 28 Sep 2024 23:35:42 +0530 Subject: [PATCH] Fix compile errors --- include/RE/B/BGSSaveLoadManager.h | 4 ++-- src/RE/B/BGSSaveLoadManager.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/RE/B/BGSSaveLoadManager.h b/include/RE/B/BGSSaveLoadManager.h index 818ba5184..450176c70 100644 --- a/include/RE/B/BGSSaveLoadManager.h +++ b/include/RE/B/BGSSaveLoadManager.h @@ -20,7 +20,7 @@ namespace RE class BGSSaveLoadFileEntry { public: - enum class SaveType : std::uint32_t + enum class SaveType { kAutosave = 0x0, kSave = 0x1, @@ -54,7 +54,7 @@ namespace RE std::uint16_t pad6A; // 6A std::uint32_t characterID; // 6C stl::enumeration saveType; // 70 - std::uint32_t pad74; // 74 + std::uint32_t pad74; // 74 }; static_assert(sizeof(BGSSaveLoadFileEntry) == 0x78); diff --git a/src/RE/B/BGSSaveLoadManager.cpp b/src/RE/B/BGSSaveLoadManager.cpp index 76a138c1f..4855ab964 100644 --- a/src/RE/B/BGSSaveLoadManager.cpp +++ b/src/RE/B/BGSSaveLoadManager.cpp @@ -23,7 +23,7 @@ namespace RE Load_Impl(a_fileName, -1, 0, a_checkForMods); } - void BGSSaveLoadManager::PopulateSaveList() + bool BGSSaveLoadManager::PopulateSaveList() { using func_t = decltype(&BGSSaveLoadManager::PopulateSaveList); static REL::Relocation func{ RELOCATION_ID(34850, 35760) };