aboutsummaryrefslogtreecommitdiff
path: root/engines/draci
diff options
context:
space:
mode:
authorEugene Sandulenko2013-10-17 14:14:19 +0300
committerEugene Sandulenko2013-10-17 14:14:19 +0300
commit78dc1c70d5246bc54ba88e2804de86c4e875ce85 (patch)
tree45dc67ad031149194d83fbae1e4adc3da523f360 /engines/draci
parentae38d943ae7c032907ab96b60dbb88a04d1028d3 (diff)
downloadscummvm-rg350-78dc1c70d5246bc54ba88e2804de86c4e875ce85.tar.gz
scummvm-rg350-78dc1c70d5246bc54ba88e2804de86c4e875ce85.tar.bz2
scummvm-rg350-78dc1c70d5246bc54ba88e2804de86c4e875ce85.zip
DRACI: Fix uninitialized variabled. CID 1003404
Diffstat (limited to 'engines/draci')
-rw-r--r--engines/draci/walking.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/engines/draci/walking.h b/engines/draci/walking.h
index a43aeb272a..7e4a3184f5 100644
--- a/engines/draci/walking.h
+++ b/engines/draci/walking.h
@@ -103,7 +103,17 @@ struct GPL2Program;
class WalkingState {
public:
- explicit WalkingState(DraciEngine *vm) : _vm(vm) { stopWalking(); }
+ explicit WalkingState(DraciEngine *vm) : _vm(vm) {
+ _dir = kDirectionLast;
+ _startingDirection = kMoveUndefined;
+ _segment = 0;
+ _lastAnimPhase = 0;
+ _turningFinished = 0;
+ _callbackOffset = 0;
+
+ stopWalking();
+ }
+
~WalkingState() {}
void stopWalking();