diff options
author | Alyssa Milburn | 2011-10-25 10:51:16 +0200 |
---|---|---|
committer | Alyssa Milburn | 2011-10-25 10:51:31 +0200 |
commit | 63aa0ef6f356c1aab2f43fe6fc96cce226fbb98e (patch) | |
tree | fbe4eee36922ae88af76909b6d4c76c85b712e57 | |
parent | 06e02a196b47377f4f9d2d2369cc89e4e4d88c1c (diff) | |
download | scummvm-rg350-63aa0ef6f356c1aab2f43fe6fc96cce226fbb98e.tar.gz scummvm-rg350-63aa0ef6f356c1aab2f43fe6fc96cce226fbb98e.tar.bz2 scummvm-rg350-63aa0ef6f356c1aab2f43fe6fc96cce226fbb98e.zip |
SCUMM: Initialize Sprite fields in constructor.
This fixes a crash when HE games return from init() early due to the
required color mode not being available.
-rw-r--r-- | engines/scumm/he/sprite_he.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/scumm/he/sprite_he.cpp b/engines/scumm/he/sprite_he.cpp index 081110c7cd..ec69ae11b4 100644 --- a/engines/scumm/he/sprite_he.cpp +++ b/engines/scumm/he/sprite_he.cpp @@ -33,7 +33,12 @@ namespace Scumm { -Sprite::Sprite(ScummEngine_v90he *vm) : _vm(vm) { +Sprite::Sprite(ScummEngine_v90he *vm) + : + _vm(vm), + _spriteGroups(0), + _spriteTable(0), + _activeSpritesTable(0) { } Sprite::~Sprite() { |