mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-28 09:33:55 -07:00
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…
Add table
Add a link
Reference in a new issue