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:
parent
4c718b792a
commit
b3b4435bc7
1 changed files with 6 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue