Fixes bug #7312:
A player can get enemy unit list pressing "Unit list" in menu while in an enemy turn. Applied patch #2497.
This commit is contained in:
parent
ec69aa4ebf
commit
681e3050c2
1 changed files with 1 additions and 1 deletions
|
@ -1442,7 +1442,7 @@ void turn_info::unit_list()
|
|||
std::vector<gamemap::location> locations_list;
|
||||
std::vector<unit> units_list;
|
||||
for(unit_map::const_iterator i = units_.begin(); i != units_.end(); ++i) {
|
||||
if(i->second.side() != team_num_)
|
||||
if(i->second.side() != (gui_.viewing_team()+1))
|
||||
continue;
|
||||
|
||||
std::stringstream row;
|
||||
|
|
Loading…
Add table
Reference in a new issue