]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/forty/scorefil.cpp
Corrected spin control, which ignored hand typed text.
[wxWidgets.git] / samples / forty / scorefil.cpp
index 348be7cfe75b3e92a1a419072c3707c9858f46ba..cb871efde08232c90af3ebf896e371bc988b8647 100644 (file)
@@ -171,7 +171,7 @@ void ScoreFile::WritePlayersScore(const char* player, int wins, int games, int s
     if (player)
        {
                m_config->SetPath("/General");
-               m_config->Write("LastPlayer", player);
+               m_config->Write("LastPlayer", wxString(player)); // Without wxString tmp, thinks it's bool in VC++
 
                m_config->SetPath("/Players");
                m_config->SetPath(player);