diff options
author | Eugene Sandulenko | 2017-01-16 08:51:47 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2017-01-16 09:05:50 +0100 |
commit | a5e998b75ab61f2f5f830edf3b8dbaa28eef47ba (patch) | |
tree | abdd987497f713cf2c8e84d1783cea54b3307354 /engines/director | |
parent | 3b7819a97e64257ed3d12529ae689f5312f5b197 (diff) | |
download | scummvm-rg350-a5e998b75ab61f2f5f830edf3b8dbaa28eef47ba.tar.gz scummvm-rg350-a5e998b75ab61f2f5f830edf3b8dbaa28eef47ba.tar.bz2 scummvm-rg350-a5e998b75ab61f2f5f830edf3b8dbaa28eef47ba.zip |
DIRECTOR: Fix Sprite class constructors
Diffstat (limited to 'engines/director')
-rw-r--r-- | engines/director/sprite.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/engines/director/sprite.cpp b/engines/director/sprite.cpp index 62897ed6e6..019966762e 100644 --- a/engines/director/sprite.cpp +++ b/engines/director/sprite.cpp @@ -56,6 +56,14 @@ Sprite::Sprite() { _cast = nullptr; _blend = 0; _lineSize = 1; + + _x1 = 0; + _x2 = 0; + _scriptId = 0; + _flags2 = 0; + _unk2 = 0; + _unk3 = 0; + _spriteType = 0; } Sprite::Sprite(const Sprite &sprite) { @@ -88,6 +96,14 @@ Sprite::Sprite(const Sprite &sprite) { _blend = sprite._blend; _startTime = sprite._startTime; _lineSize = sprite._lineSize; + + _x1 = sprite._x1; + _x2 = sprite._x2; + _scriptId = sprite._scriptId; + _flags2 = sprite._flags2; + _unk2 = sprite._unk2; + _unk3 = sprite._unk3; + _spriteType = sprite._spriteType; } Sprite::~Sprite() { |