diff options
-rw-r--r-- | engines/cge2/hero.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/cge2/hero.h b/engines/cge2/hero.h index c9933867a1..26b6dcc12a 100644 --- a/engines/cge2/hero.h +++ b/engines/cge2/hero.h @@ -46,6 +46,11 @@ struct HeroTab { int _pocPtr; V2D *_posTab[kCaveMax]; HeroTab(CGE2Engine *vm) { + _ptr = nullptr; + _face = nullptr; + for (int i = 0; i < kPocketMax + 1; i++) + _pocket[i] = nullptr; + _pocPtr = 0; for (int i = 0; i < kCaveMax; i++) _posTab[i] = new V2D(vm); } |