aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorAlyssa Milburn2011-10-25 10:51:16 +0200
committerAlyssa Milburn2011-10-25 10:51:31 +0200
commit63aa0ef6f356c1aab2f43fe6fc96cce226fbb98e (patch)
treefbe4eee36922ae88af76909b6d4c76c85b712e57 /engines
parent06e02a196b47377f4f9d2d2369cc89e4e4d88c1c (diff)
downloadscummvm-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.
Diffstat (limited to 'engines')
-rw-r--r--engines/scumm/he/sprite_he.cpp7
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() {