1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Warning fixes + typo.

This commit is contained in:
Frank Zago 2011-06-18 23:56:48 +00:00
parent 645ca7be87
commit 129c9d521e
4 changed files with 8 additions and 8 deletions

View File

@ -8,11 +8,11 @@ using namespace geniusai;
Network::Network()
{}
Network::Network(vector<unsigned int> whichFeatures)// random network
: net(whichFeatures.size(),
: whichFeatures(whichFeatures),
net(whichFeatures.size(),
whichFeatures.size() * 0.601 + 2,
whichFeatures.size() * 0.251 + 2,
1),
whichFeatures(whichFeatures)
1)
{
}
@ -250,4 +250,4 @@ float Priorities::getValue(const CGeniusAI::AIObjective & obj)
return 0;
}
#endif
#endif

View File

@ -206,7 +206,7 @@ public:
if(!army || slot == -1 || !army->hasStackAtSlot(slot))
{
base = NULL;
tlog3 << type->nameSing << " don't have a base stack!\n";
tlog3 << type->nameSing << " doesn't have a base stack!\n";
}
else
{

View File

@ -693,7 +693,7 @@ std::string CStackInstance::bonusToGraphics(Bonus *bonus) const
case Bonus::MAGIC_RESISTANCE:
fileName = "E_DWARF.bmp"; break;
case Bonus::SECONDARY_SKILL_PREMY:
if (bonus->subtype = CGHeroInstance::RESISTANCE)
if (bonus->subtype == CGHeroInstance::RESISTANCE)
{
fileName = "E_DWARF.bmp";
}

View File

@ -54,7 +54,7 @@ class CSpell;
class CCreatureSet;
class CCreature;
class CStackBasicDescriptor;
class TeamState;
struct TeamState;
class CGCreature;
@ -319,4 +319,4 @@ public:
friend struct CPackForClient;
friend struct CPackForServer;
};
#endif // __IGAMECALLBACK_H__
#endif // __IGAMECALLBACK_H__