diff options
author | Eugene Sandulenko | 2016-06-10 17:20:10 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-06-10 14:21:17 +0200 |
commit | a7d18763ac56bd3cb322f790746908390f6c73e5 (patch) | |
tree | 0e9b415a2ddfe3448d24b878102bf42b13859ad0 /engines | |
parent | 50868e9e1003e47698247fc9afb5fec514a20b21 (diff) | |
download | scummvm-rg350-a7d18763ac56bd3cb322f790746908390f6c73e5.tar.gz scummvm-rg350-a7d18763ac56bd3cb322f790746908390f6c73e5.tar.bz2 scummvm-rg350-a7d18763ac56bd3cb322f790746908390f6c73e5.zip |
TOLTECS: Initialized Animation class
Diffstat (limited to 'engines')
-rw-r--r-- | engines/toltecs/animation.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/engines/toltecs/animation.cpp b/engines/toltecs/animation.cpp index 1f776bbc02..5278b25ba8 100644 --- a/engines/toltecs/animation.cpp +++ b/engines/toltecs/animation.cpp @@ -29,6 +29,18 @@ namespace Toltecs { AnimationPlayer::AnimationPlayer(ToltecsEngine *vm) : _vm(vm) { _animBuffer = new byte[262144]; + memset(_animBuffer, 0, 262144); + + _resIndex = 0; + _width = _height = 0; + _frameNumber = 0; + _frameCount = 0; + _keepFrameCounter = 0; + _curFrameSize = _nextFrameSize = 0; + _nextFrameOffset = 0; + _firstNextFrameSize = 0; + _firstNextFrameOffset = 0; + _firstCurFrameSize = 0; } AnimationPlayer::~AnimationPlayer() { |