From e9204b1fd13e25fde2910b0adce57345234fd1ff Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Sun, 28 Feb 2016 17:21:02 +0000 Subject: [PATCH] Fix building with GCC Fixes #545. --- src/gui/handler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/handler.cpp b/src/gui/handler.cpp index 628691da..2764b1a9 100644 --- a/src/gui/handler.cpp +++ b/src/gui/handler.cpp @@ -282,7 +282,8 @@ namespace loot { // Update the settings. // If the user has deleted a default game, we don't want to restore it now. // It will be restored when LOOT is next loaded. - _lootState.load(request["args"][0]); + YAML::Node settings = request["args"][0]; + _lootState.load(settings); // Now send back the new list of installed games to the UI. BOOST_LOG_TRIVIAL(trace) << "Getting new list of installed games.";