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.
This commit is contained in:
Alyssa Milburn 2011-10-25 10:51:16 +02:00
parent 06e02a196b
commit 63aa0ef6f3

View file

@ -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() {