mirror of
https://github.com/vcmi/vcmi.git
synced 2026-06-19 22:57:37 +02:00
Fix turn ending
This commit is contained in:
@@ -24,12 +24,11 @@ SubscriptionRegistry<PlayerGotTurn> * PlayerGotTurn::getRegistry()
|
||||
return Instance.get();
|
||||
}
|
||||
|
||||
void PlayerGotTurn::defaultExecute(const EventBus * bus, PlayerColor & player)
|
||||
void PlayerGotTurn::defaultExecute(const EventBus * bus, const PlayerColor & player)
|
||||
{
|
||||
CPlayerGotTurn event;
|
||||
event.setPlayer(player);
|
||||
bus->executeEvent(event);
|
||||
player = event.getPlayer();
|
||||
}
|
||||
|
||||
CPlayerGotTurn::CPlayerGotTurn() = default;
|
||||
|
||||
Reference in New Issue
Block a user