Merge pull request #9170 from tfc/fix-broken-move

Fix broken move

(cherry picked from commit aa4f41d796630004e90790bffe2239420f77f696)
Change-Id: I39d3f9f4f27328500de005c9205d905c55d6f9ea
This commit is contained in:
eldritch horrors 2024-03-04 04:40:51 +01:00
parent d28a6618a8
commit 75fb953205

View file

@ -68,6 +68,7 @@ void AbstractConfig::warnUnknownSettings()
void AbstractConfig::reapplyUnknownSettings()
{
auto unknownSettings2 = std::move(unknownSettings);
unknownSettings = {};
for (auto & s : unknownSettings2)
set(s.first, s.second);
}