From 72b5333b4d99761a12343b2f15fd324caa42f4b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaakko=20Ker=C3=A4nen?= Date: Wed, 12 Feb 2014 14:52:41 +0200 Subject: [PATCH] Fixed|libcommon: Passing a string argument to App_Log Only POD data accepted. --- doomsday/plugins/common/src/p_saveg.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doomsday/plugins/common/src/p_saveg.cpp b/doomsday/plugins/common/src/p_saveg.cpp index a24537eb86..7faec1ad08 100644 --- a/doomsday/plugins/common/src/p_saveg.cpp +++ b/doomsday/plugins/common/src/p_saveg.cpp @@ -2622,7 +2622,7 @@ dd_bool SV_LoadGame(int slot) } catch(de::Error const &er) { - App_Log(DE2_RES_WARNING, "Error loading save slot #%i:\n%s", slot, er.asText()); + App_Log(DE2_RES_WARNING, "Error loading save slot #%i:\n%s", slot, er.asText().toLatin1().constData()); } return false; @@ -2871,7 +2871,7 @@ dd_bool SV_SaveGame(int slot, char const *description) } catch(de::Error const &er) { - App_Log(DE2_RES_WARNING, "Error writing to save slot #%i:\n%s", slot, er.asText()); + App_Log(DE2_RES_WARNING, "Error writing to save slot #%i:\n%s", slot, er.asText().toLatin1().constData()); } // Discard the useless save info.