- corrected some uninitialized vars identified by cppcheck

This commit is contained in:
SoftCoder 2014-11-28 16:53:30 -08:00
parent d0cdea1a6d
commit a656a64830
3 changed files with 5 additions and 1 deletions

@ -1 +1 @@
Subproject commit f674bb7461ea1ada93c96a7c3167daa4d2dc1ef3
Subproject commit 929c6bac3c2654aa549aaecd589cdc15a0abdd61

View File

@ -141,6 +141,8 @@ UnitType::UnitType() : ProducibleType() {
size=0;
renderSize=0;
height=0;
burnHeight=0;
targetHeight=0;
addItemToVault(&(this->maxHp),this->maxHp);
addItemToVault(&(this->hpRegeneration),this->hpRegeneration);

View File

@ -120,6 +120,8 @@ public:
moveSpeedIsMultiplier = false;
prodSpeed = 0;
prodSpeedIsMultiplier = false;
attackSpeed = 0;
attackSpeedIsMultiplier = false;
}
virtual ~UpgradeTypeBase() {}