diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/hdb/ai.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/engines/hdb/ai.h b/engines/hdb/ai.h index f24000738b..8b25008648 100644 --- a/engines/hdb/ai.h +++ b/engines/hdb/ai.h @@ -546,6 +546,57 @@ struct AIEntity { moverightGfx[i] = new Tile; } } + ~AIEntity() { + blinkFrames = 0; + for (int i = 0; i < kMaxAnimFrames; i++) { + delete blinkGfx[i]; + } + + special1Frames = 0; + for (int i = 0; i < kMaxAnimFrames; i++) { + delete special1Gfx[i]; + } + + standdownFrames = 0; + for (int i = 0; i < kMaxAnimFrames; i++) { + delete standdownGfx[i]; + } + + standupFrames = 0; + for (int i = 0; i < kMaxAnimFrames; i++) { + delete standupGfx[i]; + } + + standleftFrames = 0; + for (int i = 0; i < kMaxAnimFrames; i++) { + delete standleftGfx[i]; + } + + standrightFrames = 0; + for (int i = 0; i < kMaxAnimFrames; i++) { + delete standrightGfx[i]; + } + + movedownFrames = 0; + for (int i = 0; i < kMaxAnimFrames; i++) { + delete movedownGfx[i]; + } + + moveupFrames = 0; + for (int i = 0; i < kMaxAnimFrames; i++) { + delete moveupGfx[i]; + } + + moveleftFrames = 0; + for (int i = 0; i < kMaxAnimFrames; i++) { + delete moveleftGfx[i]; + } + + moverightFrames = 0; + for (int i = 0; i < kMaxAnimFrames; i++) { + delete moverightGfx[i]; + } + } void save(Common::OutSaveFile *out); void load(Common::InSaveFile *in); @@ -597,6 +648,12 @@ struct AnimTarget { gfxList[i] = new Tile; } } + + ~AnimTarget() { + for (int i = 0; i < kMaxAnimTFrames; i++) { + delete gfxList[i]; + } + } }; struct InvEnt { |