]> git.saurik.com Git - wxWidgets.git/blobdiff - demos/forty/scorefil.cpp
do override SetSplitterPosition() in wxPropertyGridPage: this was clearly meant to...
[wxWidgets.git] / demos / forty / scorefil.cpp
index 83c2e6e45b6ebb9fb24d3058b55f954921f6e6a6..e49fb6afcef23c2e21dab72cb05777776e55d7bf 100644 (file)
@@ -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++