From 0750d46285e34f4f734c833a114450a6b3bd1aa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20W=2E=20Urba=C5=84czyk?= Date: Fri, 28 Sep 2012 19:11:09 +0000 Subject: [PATCH] Fix #1095. --- lib/CArtHandler.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/CArtHandler.cpp b/lib/CArtHandler.cpp index 724fa7209..9311e3b30 100644 --- a/lib/CArtHandler.cpp +++ b/lib/CArtHandler.cpp @@ -924,7 +924,9 @@ void CArtHandler::addBonuses() } cfg.Vector().push_back(jn); } - JsonWriter(std::ofstream("config/artifacts.json"), cfg); + + std::ofstream artconfigOutput("config/artifacts.json"); + JsonWriter(artconfigOutput, cfg); } void CArtHandler::clear()