Fix warning with gcc.

This commit is contained in:
Joris 2012-09-01 08:31:00 +02:00
parent 57ecef96a2
commit c6a2fc0a3f

View file

@ -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;