diff options
author | Eugene Sandulenko | 2016-06-13 21:57:24 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-06-13 22:00:38 +0200 |
commit | f25c8482384d6fc5c7058d47ea9d78492fd3c323 (patch) | |
tree | f224ed5656893841f546642af3fb27c8b1ec0108 /engines | |
parent | 3a954932cca48aa4a2b8ebeff6097c15d37703ab (diff) | |
download | scummvm-rg350-f25c8482384d6fc5c7058d47ea9d78492fd3c323.tar.gz scummvm-rg350-f25c8482384d6fc5c7058d47ea9d78492fd3c323.tar.bz2 scummvm-rg350-f25c8482384d6fc5c7058d47ea9d78492fd3c323.zip |
MOHAWK: Engine classes initializations
Diffstat (limited to 'engines')
-rw-r--r-- | engines/mohawk/cstime.h | 2 | ||||
-rw-r--r-- | engines/mohawk/cstime_game.cpp | 5 | ||||
-rw-r--r-- | engines/mohawk/cstime_ui.cpp | 4 |
3 files changed, 10 insertions, 1 deletions
diff --git a/engines/mohawk/cstime.h b/engines/mohawk/cstime.h index f95222d3a1..bfb7daf945 100644 --- a/engines/mohawk/cstime.h +++ b/engines/mohawk/cstime.h @@ -111,7 +111,7 @@ enum { }; struct CSTimeEvent { - CSTimeEvent() { } + CSTimeEvent() : type(0), param1(0), param2(0) { } CSTimeEvent(uint16 t, uint16 p1, uint16 p2) : type(t), param1(p1), param2(p2) { } uint16 type; diff --git a/engines/mohawk/cstime_game.cpp b/engines/mohawk/cstime_game.cpp index 8eced701c3..c939d8bc24 100644 --- a/engines/mohawk/cstime_game.cpp +++ b/engines/mohawk/cstime_game.cpp @@ -94,6 +94,11 @@ CSTimeChar::CSTimeChar(MohawkEngine_CSTime *vm, CSTimeScene *scene, uint id) : _ _lastTime2 = 0; _lastTime3 = 0; + _unknown1 = _unknown2 = _unknown3 = 0; + _enabled = false; + _nextCue = 0; + _waveStatus = 0; + _playingWaveId = 0; } diff --git a/engines/mohawk/cstime_ui.cpp b/engines/mohawk/cstime_ui.cpp index f3fe27a966..59be95adf6 100644 --- a/engines/mohawk/cstime_ui.cpp +++ b/engines/mohawk/cstime_ui.cpp @@ -79,6 +79,8 @@ CSTimeInterface::CSTimeInterface(MohawkEngine_CSTime *vm) : _vm(vm) { _rolloverTextFeature = NULL; _bubbleTextFeature = NULL; + _draggedItem = 0; + _mouseWasInScene = false; _state = kCSTimeInterfaceStateNormal; @@ -1034,6 +1036,8 @@ CSTimeInventoryDisplay::CSTimeInventoryDisplay(MohawkEngine_CSTime *vm, Common:: _cuffsState = false; _cuffsShape = 10; + _draggedItem = 0; + _invRect = baseRect; for (uint i = 0; i < MAX_DISPLAYED_ITEMS; i++) { |