Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit b5cf07b

Browse files
Merge pull request #7502 from livecodeian/bugfix-23044
[[ Bug 23044 ]] Fix crash when deleting current card in closeStack handler
2 parents d5e9cbc + 4ced3b0 commit b5cf07b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/notes/bugfix-23044.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Fix crash when deleting the current card of a stack within its closeStack handler

engine/src/stack3.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1490,8 +1490,8 @@ void MCStack::removecard(MCCard *cptr)
14901490
if (state & CS_IGNORE_CLOSE)
14911491
{
14921492
curcard = cptr->next();
1493-
cptr->remove
1494-
(cards);
1493+
cptr->close();
1494+
cptr->remove(cards);
14951495
if (cards == NULL)
14961496
{
14971497
cards = curcard = MCtemplatecard->clone(False, False);

0 commit comments

Comments
 (0)