fixed client crash that occurred when the game ended with a card tap/untap animation running
This commit is contained in:
parent
332ca29d62
commit
61b351aa9f
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue