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:
parent
645ca7be87
commit
129c9d521e
@ -8,11 +8,11 @@ using namespace geniusai;
|
|||||||
Network::Network()
|
Network::Network()
|
||||||
{}
|
{}
|
||||||
Network::Network(vector<unsigned int> whichFeatures)// random 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.601 + 2,
|
||||||
whichFeatures.size() * 0.251 + 2,
|
whichFeatures.size() * 0.251 + 2,
|
||||||
1),
|
1)
|
||||||
whichFeatures(whichFeatures)
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -206,7 +206,7 @@ public:
|
|||||||
if(!army || slot == -1 || !army->hasStackAtSlot(slot))
|
if(!army || slot == -1 || !army->hasStackAtSlot(slot))
|
||||||
{
|
{
|
||||||
base = NULL;
|
base = NULL;
|
||||||
tlog3 << type->nameSing << " don't have a base stack!\n";
|
tlog3 << type->nameSing << " doesn't have a base stack!\n";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -693,7 +693,7 @@ std::string CStackInstance::bonusToGraphics(Bonus *bonus) const
|
|||||||
case Bonus::MAGIC_RESISTANCE:
|
case Bonus::MAGIC_RESISTANCE:
|
||||||
fileName = "E_DWARF.bmp"; break;
|
fileName = "E_DWARF.bmp"; break;
|
||||||
case Bonus::SECONDARY_SKILL_PREMY:
|
case Bonus::SECONDARY_SKILL_PREMY:
|
||||||
if (bonus->subtype = CGHeroInstance::RESISTANCE)
|
if (bonus->subtype == CGHeroInstance::RESISTANCE)
|
||||||
{
|
{
|
||||||
fileName = "E_DWARF.bmp";
|
fileName = "E_DWARF.bmp";
|
||||||
}
|
}
|
||||||
|
@ -54,7 +54,7 @@ class CSpell;
|
|||||||
class CCreatureSet;
|
class CCreatureSet;
|
||||||
class CCreature;
|
class CCreature;
|
||||||
class CStackBasicDescriptor;
|
class CStackBasicDescriptor;
|
||||||
class TeamState;
|
struct TeamState;
|
||||||
class CGCreature;
|
class CGCreature;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user