aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruruk2014-08-13 19:54:59 +0200
committeruruk2014-08-13 19:54:59 +0200
commit277f844f0900c01839ad6dc5680110f9ea326d17 (patch)
treeddc12038cdd5a608ccb656a1e82723a6be7f9e02
parentfecabc039eb8363de4d0a36161b614527d38ebbd (diff)
downloadscummvm-rg350-277f844f0900c01839ad6dc5680110f9ea326d17.tar.gz
scummvm-rg350-277f844f0900c01839ad6dc5680110f9ea326d17.tar.bz2
scummvm-rg350-277f844f0900c01839ad6dc5680110f9ea326d17.zip
CGE2: Initialize _maxDist in Hero's constructor.
-rw-r--r--engines/cge2/hero.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/cge2/hero.cpp b/engines/cge2/hero.cpp
index 945bf483bc..86bd7ac953 100644
--- a/engines/cge2/hero.cpp
+++ b/engines/cge2/hero.cpp
@@ -33,7 +33,7 @@ namespace CGE2 {
Hero::Hero(CGE2Engine *vm)
: Sprite(vm), _contact(nullptr), _dir(kNoDir),
- _curDim(0), _tracePtr(-1), _ignoreMap(false) {
+ _curDim(0), _tracePtr(-1), _ignoreMap(false), _maxDist(0) {
for (int i = 0; i < kDimMax; i++) {
_dim[i] = nullptr;