Fix warning with gcc.
This commit is contained in:
parent
57ecef96a2
commit
c6a2fc0a3f
1 changed files with 6 additions and 5 deletions
|
@ -288,11 +288,12 @@ void AiForce::RemoveDeadUnit()
|
|||
class AiForceRallyPointFinder
|
||||
{
|
||||
public:
|
||||
AiForceRallyPointFinder(const CUnit &startUnit, const int distance, const Vec2i &startPos,
|
||||
Vec2i *resultPos) :
|
||||
startUnit(startUnit), distance(distance), startPos(startPos), resultPos(resultPos),
|
||||
movemask(startUnit.Type->MovementMask & ~(MapFieldLandUnit | MapFieldAirUnit | MapFieldSeaUnit | MapFieldBuilding)) {}
|
||||
VisitResult Visit(TerrainTraversal &terrainTraversal, const Vec2i &pos, const Vec2i &from);
|
||||
AiForceRallyPointFinder(const CUnit &startUnit, int distance, const Vec2i &startPos, Vec2i *resultPos) :
|
||||
startUnit(startUnit), distance(distance), startPos(startPos),
|
||||
movemask(startUnit.Type->MovementMask & ~(MapFieldLandUnit | MapFieldAirUnit | MapFieldSeaUnit | MapFieldBuilding)),
|
||||
resultPos(resultPos)
|
||||
{}
|
||||
VisitResult Visit(TerrainTraversal &terrainTraversal, const Vec2i &pos, const Vec2i &from);
|
||||
private:
|
||||
const CUnit &startUnit;
|
||||
const int distance;
|
||||
|
|
Loading…
Reference in a new issue