Commit 61b351aa authored by Max-Wilhelm Bruker's avatar Max-Wilhelm Bruker
Browse files

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

parent 332ca29d
...@@ -112,6 +112,9 @@ CardItem::~CardItem() ...@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment