mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-18 00:12:15 -07:00
Fix segfault when creating token of opponent's card
This commit is contained in:
parent
aff775f488
commit
bf1412172b
1 changed files with 2 additions and 1 deletions
|
|
@ -878,7 +878,8 @@ void PlayerActions::actCreateAnotherToken()
|
||||||
|
|
||||||
void PlayerActions::setLastToken(CardInfoPtr cardInfo)
|
void PlayerActions::setLastToken(CardInfoPtr cardInfo)
|
||||||
{
|
{
|
||||||
if (cardInfo == nullptr || !player->getPlayerMenu()->getUtilityMenu()->createAnotherTokenActionExists()) {
|
if (cardInfo == nullptr || !player->getPlayerMenu()->getUtilityMenu() ||
|
||||||
|
player->getPlayerMenu()->getUtilityMenu()->createAnotherTokenActionExists()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue