small code tweak, see patch 4313
This commit is contained in:
parent
3ab84f9767
commit
2f252def99
2 changed files with 3 additions and 3 deletions
|
@ -25,7 +25,7 @@ CVS HEAD:
|
|||
* removed tooltip picture (#14134): with #14084 present this cannot be fixed
|
||||
* fixed Lich using wrong image (#14139)
|
||||
* made checksums work on AMD64
|
||||
|
||||
* various bug fixes and code cleanups
|
||||
|
||||
Version 0.9.5:
|
||||
* language and i18n:
|
||||
|
|
|
@ -96,9 +96,9 @@ std::string recruit_unit(const gamemap& map, int side,
|
|||
typedef std::map<gamemap::location,unit> units_map;
|
||||
|
||||
//find the unit that can recruit
|
||||
units_map::const_iterator u = units.end();
|
||||
units_map::const_iterator u = units.begin();
|
||||
|
||||
for(u = units.begin(); u != units.end(); ++u) {
|
||||
for(; u != units.end(); ++u) {
|
||||
if(u->second.can_recruit() && u->second.side() == side) {
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue