[Refactor] Move the active card from AbstractGame into GameScene (#7416)

Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
BruebachL 2026-10-31 18:44:08 +01:00 • committed by GitHub
parent 94b91be5a2
commit 4972ebcb97
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 26 additions and 20 deletions

View file

@ -98,7 +98,7 @@ QMenu *PlayerMenu::updateCardMenu(CardItem *card)
// only update the menu if the card is actually selected
if ((player->getLogic()->getGame()->getPlayerManager()->isSpectator() &&
!player->getLogic()->getGame()->getPlayerManager()->isJudge()) ||
player->getLogic()->getGame()->getActiveCard() != card) {
player->getGameScene()->getActiveCard() != card) {
return nullptr;
}