diff options
Diffstat (limited to 'engines/dreamweb/structs.h')
-rw-r--r-- | engines/dreamweb/structs.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/dreamweb/structs.h b/engines/dreamweb/structs.h index cedf2b6d76..24b67e317a 100644 --- a/engines/dreamweb/structs.h +++ b/engines/dreamweb/structs.h @@ -339,9 +339,9 @@ struct TextFile { }; struct GraphicsFile { - GraphicsFile() : _data(0) { } + GraphicsFile() : _data(0), _frames(0) { } - Frame _frames[347]; + Frame *_frames; uint8 *_data; const uint8 *getFrameData(unsigned int i) const { @@ -351,6 +351,8 @@ struct GraphicsFile { return _data + _frames[i].ptr(); } void clear() { + delete[] _frames; + _frames = 0; delete[] _data; _data = 0; } |