mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 00:15:30 +00:00
CGE2: Initialize _maxDist in Hero's constructor.
This commit is contained in:
parent
fecabc039e
commit
277f844f09
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user