]> git.saurik.com Git - wxWidgets.git/blobdiff - demos/forty/game.cpp
1.
[wxWidgets.git] / demos / forty / game.cpp
index 9b9048f6de85169424bee16673b936a03bfc3ea5..9eed283867f3924fe0e2cfa28a430cb5419c8a2c 100644 (file)
@@ -193,8 +193,8 @@ void Game::DoMove(wxDC& dc, Pile* src, Pile* dest)
 
                if (frame)
                {
 
                if (frame)
                {
-                       wxNode *node = frame->GetChildren().First();
-                       if (node) canvas = (wxWindow*)node->Data();
+                       wxNode *node = (wxNode *)frame->GetChildren().GetFirst();
+                       if (node) canvas = (wxWindow*)node->GetData();
                }
 
                // This game is over
                }
 
                // This game is over