SVN commit 1191721 by majewsky: Fix collision behavior of Cup, and fix a crash in KolfGame dtor. The crash fix introduces another crash when the game is closed, but fixing the other crash is more important right now because it hindered me from starting any games. M +3 -0 game.cpp --- trunk/KDE/kdegames/kolf/game.cpp #1191720:1191721 @@ -1083,6 +1083,7 @@ const int diameter = 16; setSize(QSizeF(diameter, diameter)); addShape(new Kolf::EllipseShape(QRectF(-diameter / 2, -diameter / 2, diameter, diameter))); + setSimulationType(CanvasItem::CollisionSimulation); setZValue(998.1); } @@ -2156,6 +2157,8 @@ KolfGame::~KolfGame() { + for (PlayerList::Iterator it = players->begin(); it != players->end(); ++it) + (*it).ball()->setGame(0); delete cfg; #ifdef SOUND delete m_player;