From 94b901bfed81ab9519b057fa71cac18e929819a9 Mon Sep 17 00:00:00 2001 From: Zero Fanker Date: Wed, 10 Apr 2024 21:51:45 -0400 Subject: [PATCH] ini handling bugfix . --- MissionEditor/IniFile.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/MissionEditor/IniFile.h b/MissionEditor/IniFile.h index a422020..d1f0bac 100644 --- a/MissionEditor/IniFile.h +++ b/MissionEditor/IniFile.h @@ -135,8 +135,7 @@ public: auto const it = value_pos.find(key); // new, never had one if (it == value_pos.end()) { - this->value_pairs.push_back({ key, std::move(value) }); - value_pos[key] = value_pairs.size(); + this->Insert(key, std::move(value)); return; } value_pairs[it->second].second = std::move(value);