TOLTECS: Initialized Animation class

This commit is contained in:
Eugene Sandulenko 2016-06-10 17:20:10 +02:00
parent 50868e9e10
commit a7d18763ac

View File

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