diff options
author | Eugene Sandulenko | 2016-05-23 19:12:56 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-05-23 19:12:56 +0200 |
commit | fb816708a2ff6faf8d8b6a5d7df9137d2bfbb1db (patch) | |
tree | 00748dada3cad79ced5c1ee43c4431e442da4491 /engines/scumm/he/moonbase/ai_defenseunit.cpp | |
parent | 70ffcf91f5538765847f373ce2acbc611aec77c5 (diff) | |
download | scummvm-rg350-fb816708a2ff6faf8d8b6a5d7df9137d2bfbb1db.tar.gz scummvm-rg350-fb816708a2ff6faf8d8b6a5d7df9137d2bfbb1db.tar.bz2 scummvm-rg350-fb816708a2ff6faf8d8b6a5d7df9137d2bfbb1db.zip |
SCUMM HE: Fix warnings
Diffstat (limited to 'engines/scumm/he/moonbase/ai_defenseunit.cpp')
-rw-r--r-- | engines/scumm/he/moonbase/ai_defenseunit.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/scumm/he/moonbase/ai_defenseunit.cpp b/engines/scumm/he/moonbase/ai_defenseunit.cpp index f1f0251dc6..ba180bac66 100644 --- a/engines/scumm/he/moonbase/ai_defenseunit.cpp +++ b/engines/scumm/he/moonbase/ai_defenseunit.cpp @@ -30,6 +30,13 @@ namespace Scumm { DefenseUnit::DefenseUnit() { _state = DUS_ON; + + _id = -1; + _distanceTo = 0; + _state = 0; + _radius = 0; + _armor = 0; + _cost = 0; } DefenseUnit::DefenseUnit(DefenseUnit *inUnit) { @@ -40,6 +47,7 @@ DefenseUnit::DefenseUnit(DefenseUnit *inUnit) { _state = inUnit->getState(); _radius = inUnit->getRadius(); _armor = inUnit->getArmor(); + _cost = inUnit->getCost(); } DefenseUnit::~DefenseUnit() { |