fixed client crash that occurred when the game ended with a card tap/untap animation running

This commit is contained in:
Max-Wilhelm Bruker 2012-03-11 11:26:07 +01:00
parent 332ca29d62
commit 61b351aa9f

View file

@ -112,6 +112,9 @@ CardItem::~CardItem()
{ {
prepareDelete(); prepareDelete();
if (scene())
static_cast<GameScene *>(scene())->unregisterAnimationItem(this);
delete cardMenu; delete cardMenu;
cardMenu = 0; cardMenu = 0;
delete moveMenu; delete moveMenu;