diff options
author | Filippos Karapetis | 2013-10-05 21:32:16 +0300 |
---|---|---|
committer | Filippos Karapetis | 2013-10-05 21:32:16 +0300 |
commit | 1e87d135bedf9844e3e44a4261ffcb44aac67feb (patch) | |
tree | 5461bce373b745baecea70f470165e750950910c /engines | |
parent | 55a8e7a2de166dc9db785049e53019a0a7c20df0 (diff) | |
download | scummvm-rg350-1e87d135bedf9844e3e44a4261ffcb44aac67feb.tar.gz scummvm-rg350-1e87d135bedf9844e3e44a4261ffcb44aac67feb.tar.bz2 scummvm-rg350-1e87d135bedf9844e3e44a4261ffcb44aac67feb.zip |
FULLPIPE: Silence false positives about uninitialized variables in MSVC
Diffstat (limited to 'engines')
-rw-r--r-- | engines/fullpipe/behavior.cpp | 4 | ||||
-rw-r--r-- | engines/fullpipe/motion.cpp | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/engines/fullpipe/behavior.cpp b/engines/fullpipe/behavior.cpp index 1a2b7bb8e2..c1fe835b81 100644 --- a/engines/fullpipe/behavior.cpp +++ b/engines/fullpipe/behavior.cpp @@ -239,7 +239,7 @@ void BehaviorInfo::initObjectBehavior(GameVar *var, Scene *sc, StaticANIObject * } for (int i = 0; i < _itemsCount; i++) { - int maxDelay; + int maxDelay = 0; _bheItems.push_back(new BehaviorEntry(var->getSubVarByIndex(i), sc, ani, &maxDelay)); @@ -275,7 +275,7 @@ BehaviorEntry::BehaviorEntry(GameVar *var, Scene *sc, StaticANIObject *ani, int for (int i = 0; i < _itemsCount; i++) { GameVar *subvar = var->getSubVarByIndex(i); - int delay; + int delay = 0; _items[i] = new BehaviorEntryInfo(subvar, sc, &delay); totalPercent += delay; diff --git a/engines/fullpipe/motion.cpp b/engines/fullpipe/motion.cpp index 78fdbe2c6d..ecf128e9cd 100644 --- a/engines/fullpipe/motion.cpp +++ b/engines/fullpipe/motion.cpp @@ -401,7 +401,7 @@ bool MovGraph2::initDirections(StaticANIObject *obj, MovGraph2Item *item) { return false; for (int act = 0; act < 3; act++) { - int idx; + int idx = 0; switch(act) { case 0: @@ -428,7 +428,7 @@ bool MovGraph2::initDirections(StaticANIObject *obj, MovGraph2Item *item) { } for (int act = 0; act < 4; act++) { - int idx; + int idx = 0; switch(act) { case 0: @@ -458,7 +458,7 @@ bool MovGraph2::initDirections(StaticANIObject *obj, MovGraph2Item *item) { } for (int act = 0; act < 4; act++) { - int idx; + int idx = 0; switch(act) { case 0: |