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.
(cherry picked from commit 63aa0ef6f3)
This commit is contained in:
Alyssa Milburn 2011-10-25 10:51:16 +02:00 committed by Willem Jan Palenstijn
parent 4c718b792a
commit b3b4435bc7

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