Navigation Menu

Skip to content

Commit

Permalink
Fixed|libcommon: Passing a string argument to App_Log
Browse files Browse the repository at this point in the history
Only POD data accepted.
  • Loading branch information
skyjake authored and danij-deng committed Feb 12, 2014
1 parent 81bdf4e commit 72b5333
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doomsday/plugins/common/src/p_saveg.cpp
Expand Up @@ -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;
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 72b5333

Please sign in to comment.