From 4ee9979868b30cd85fca3fc5f3fc86096837e5a3 Mon Sep 17 00:00:00 2001 From: Zero Fanker Date: Sat, 6 Apr 2024 14:33:07 -0400 Subject: [PATCH] ini method fix . --- MissionEditor/IniFile.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/MissionEditor/IniFile.h b/MissionEditor/IniFile.h index 662b0ed..ce958a4 100644 --- a/MissionEditor/IniFile.h +++ b/MissionEditor/IniFile.h @@ -142,6 +142,10 @@ public: value_pairs[it->second].second = std::move(value); } + void SetInteger(const CString& key, const int val) { + this->SetString(key, INIHelper::ToString(val)); + } + void Insert(const CString& key, const CString& value) { this->Insert(key, CString(value)); } @@ -314,7 +318,7 @@ public: void SetBool(const CString& section, const CString& key, const bool value) { this->SetString(section, key, INIHelper::ToString(value)); } - void SetInteger(const CString& section, const CString& key, const bool value) { + void SetInteger(const CString& section, const CString& key, const int value) { this->SetString(section, key, INIHelper::ToString(value)); }