diff --git a/cockatrice/src/game/player/player_logic.h b/cockatrice/src/game/player/player_logic.h index 3832e55c3..16c86d16f 100644 --- a/cockatrice/src/game/player/player_logic.h +++ b/cockatrice/src/game/player/player_logic.h @@ -95,6 +95,10 @@ signals: public slots: void setActive(bool _active); void onRequestZoneViewToggle(const QString &zoneName, int numberCards, bool isReversed); + void requestRearrangeCounters() + { + emit rearrangeCounters(); + } public: PlayerLogic(const ServerInfo_User &info, int _id, bool _local, bool _judge, AbstractGame *_parent); diff --git a/cockatrice/src/game_graphics/board/abstract_counter.cpp b/cockatrice/src/game_graphics/board/abstract_counter.cpp index e20b27c8e..070e0167e 100644 --- a/cockatrice/src/game_graphics/board/abstract_counter.cpp +++ b/cockatrice/src/game_graphics/board/abstract_counter.cpp @@ -35,7 +35,7 @@ AbstractCounter::AbstractCounter(CounterState *state, connect(state, &CounterState::activeChanged, this, [this](bool newActive) { setActive(newActive); - emit player->rearrangeCounters(); + player->requestRearrangeCounters(); }); if (player->getPlayerInfo()->getLocalOrJudge()) {