1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-13 01:20:34 +02:00

Compile and warning fixes.

This commit is contained in:
Frank Zago
2011-05-27 22:34:58 +00:00
parent abc0d3537e
commit 4af4f0a707
4 changed files with 30 additions and 32 deletions

View File

@ -50,7 +50,7 @@ bool CGeniusAI::AIObjectContainer::operator<(const AIObjectContainer& b) const
CGeniusAI::HypotheticalGameState::HeroModel::HeroModel(
const CGHeroInstance* h)
: h(h), finished(false)
: finished(false), h(h)
{
pos = h->getPosition(false);
remainingMovement = h->movement;
@ -140,7 +140,7 @@ CGeniusAI::HeroObjective::HeroObjective(const HypotheticalGameState &hgs,
const CGObjectInstance* object,
HypotheticalGameState::HeroModel* h,
CGeniusAI* ai)
: object(object), hgs(hgs)
: hgs(hgs), object(object)
{
AI = ai;
pos = object->pos;
@ -262,7 +262,7 @@ CGeniusAI::TownObjective::TownObjective(
HypotheticalGameState::TownModel* tn,
int Which,
CGeniusAI * ai)
: whichTown(tn), which(Which), hgs(hgs)
: hgs(hgs), whichTown(tn), which(Which)
{
AI = ai;
type = t;