X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/82ea63e6e046652bc0799badd9d62f91c9918dbe..07eb77a690c51d4d8310402a0275a16a0a99e755:/demos/forty/game.cpp?ds=inline diff --git a/demos/forty/game.cpp b/demos/forty/game.cpp index fa1a29e434..e7c47b9b9f 100644 --- a/demos/forty/game.cpp +++ b/demos/forty/game.cpp @@ -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 &&