]> git.saurik.com Git - wxWidgets.git/blobdiff - demos/forty/game.cpp
configure changes, for wxBase and wx-config
[wxWidgets.git] / demos / forty / game.cpp
index fa1a29e4341829c20a0c128382e52cd5ffc29255..e7c47b9b9f05c416e93e5ea1d832e5555eb22bad 100644 (file)
@@ -410,8 +410,8 @@ void Game::LButtonDblClk(wxDC& dc, int x, int y)
                        {
                                for(i = 0; i < 4; i++)
                                {
-                                       Card* m_topCard;
-                                       if ((m_topCard = m_foundations[i]->GetTopCard()))
+                                       Card* m_topCard = m_foundations[i]->GetTopCard();
+                                       if ( m_topCard )
                     {
                                                if (m_topCard->GetSuit() == card->GetSuit() &&
                             m_foundations[i + 4] != pile &&