- 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

View File

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

View File

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