CGE2: Initialize _maxDist in Hero's constructor.

This commit is contained in:
uruk 2014-08-13 19:54:59 +02:00
parent fecabc039e
commit 277f844f09

View File

@ -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;