X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a2f2764dfb323c70488243f8aa791e2bf780cb0a..fa2b309e782464cffe7163d03a740a32fa385af5:/demos/forty/scorefil.cpp diff --git a/demos/forty/scorefil.cpp b/demos/forty/scorefil.cpp index 83c2e6e45b..e49fb6afce 100644 --- a/demos/forty/scorefil.cpp +++ b/demos/forty/scorefil.cpp @@ -128,7 +128,7 @@ void ScoreFile::ReadPlayersScore( void ScoreFile::WritePlayersScore(const wxString& player, int wins, int games, int score) { - if (player) + if (!player.empty()) { m_config->SetPath(_T("/General")); m_config->Write(_T("LastPlayer"), wxString(player)); // Without wxString tmp, thinks it's bool in VC++