From 277f844f0900c01839ad6dc5680110f9ea326d17 Mon Sep 17 00:00:00 2001 From: uruk Date: Wed, 13 Aug 2014 19:54:59 +0200 Subject: CGE2: Initialize _maxDist in Hero's constructor. --- engines/cge2/hero.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3