diff options
author | uruk | 2014-06-13 14:07:19 +0200 |
---|---|---|
committer | uruk | 2014-06-13 14:07:35 +0200 |
commit | 6ac5e2cfcfa3e13b3eb93c88790c7babcb7af6d2 (patch) | |
tree | dd96da4aa65436a73fa0a56a50a24ae4a99757b7 /engines | |
parent | 162c840937027ae2935fddd7d660c28713a7b004 (diff) | |
download | scummvm-rg350-6ac5e2cfcfa3e13b3eb93c88790c7babcb7af6d2.tar.gz scummvm-rg350-6ac5e2cfcfa3e13b3eb93c88790c7babcb7af6d2.tar.bz2 scummvm-rg350-6ac5e2cfcfa3e13b3eb93c88790c7babcb7af6d2.zip |
CGE2: Fix initialization of HeroTab.
Diffstat (limited to 'engines')
-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); } |