mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Enabled & fixed -Woverloaded-virtual warning from gcc/cland
- fixed almost all instances of overloaded-virtual warning - cleared up inheritance & method overrides in code affected by warning
This commit is contained in:
@ -75,6 +75,11 @@ bool CTeamVisited::wasVisited(PlayerColor player) const
|
||||
return wasVisited(cb->getPlayerState(player)->team);
|
||||
}
|
||||
|
||||
bool CTeamVisited::wasVisited(const CGHeroInstance * h) const
|
||||
{
|
||||
return wasVisited(h->tempOwner);
|
||||
}
|
||||
|
||||
bool CTeamVisited::wasVisited(TeamID team) const
|
||||
{
|
||||
for(auto i : players)
|
||||
|
Reference in New Issue
Block a user