ASYLUM: (TimeMachine puzzle) fix uninitialized class members

CID 1453221
This commit is contained in:
alxpnv 2021-09-21 12:10:42 +03:00
parent ce0c5cce18
commit b9e52233c3

View File

@ -48,10 +48,15 @@ const int16 puzzleTimeMachinePoints[5][2] = {
PuzzleTimeMachine::PuzzleTimeMachine(AsylumEngine *engine) : Puzzle(engine) {
_leftButtonClicked = true;
_counter = 0;
memset(&_frameIndexes, 0, sizeof(_frameIndexes));
memset(&_frameCounts, 0, sizeof(_frameCounts));
memset(&_frameIncrements, 0, sizeof(_frameIncrements));
memset(&_state, 0, sizeof(_state));
_data_45AAA8 = _data_45AAAC = 0;
_currentFrameIndex = 0;
reset();
}