mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-08-02 08:57:53 -07:00
fixed client crash that occurred when the game ended with a card tap/untap animation running
This commit is contained in:
@@ -112,6 +112,9 @@ CardItem::~CardItem()
|
||||
{
|
||||
prepareDelete();
|
||||
|
||||
if (scene())
|
||||
static_cast<GameScene *>(scene())->unregisterAnimationItem(this);
|
||||
|
||||
delete cardMenu;
|
||||
cardMenu = 0;
|
||||
delete moveMenu;
|
||||
|
||||
Reference in New Issue
Block a user