MOHAWK: Fix uninitialized memory accesses in the Myst stacks
This commit is contained in:
parent
01bfd37919
commit
22882f54e1
4 changed files with 10 additions and 0 deletions
|
@ -37,6 +37,7 @@ namespace MystStacks {
|
||||||
|
|
||||||
Credits::Credits(MohawkEngine_Myst *vm) : MystScriptParser(vm) {
|
Credits::Credits(MohawkEngine_Myst *vm) : MystScriptParser(vm) {
|
||||||
setupOpcodes();
|
setupOpcodes();
|
||||||
|
_curImage = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
Credits::~Credits() {
|
Credits::~Credits() {
|
||||||
|
|
|
@ -40,6 +40,9 @@ Mechanical::Mechanical(MohawkEngine_Myst *vm) :
|
||||||
setupOpcodes();
|
setupOpcodes();
|
||||||
|
|
||||||
_elevatorGoingMiddle = false;
|
_elevatorGoingMiddle = false;
|
||||||
|
_elevatorPosition = 0;
|
||||||
|
|
||||||
|
_crystalLit = 0;
|
||||||
|
|
||||||
_mystStaircaseState = false;
|
_mystStaircaseState = false;
|
||||||
_fortressPosition = 0;
|
_fortressPosition = 0;
|
||||||
|
|
|
@ -41,6 +41,10 @@ Selenitic::Selenitic(MohawkEngine_Myst *vm) :
|
||||||
setupOpcodes();
|
setupOpcodes();
|
||||||
_mazeRunnerPosition = 288;
|
_mazeRunnerPosition = 288;
|
||||||
_mazeRunnerDirection = 8;
|
_mazeRunnerDirection = 8;
|
||||||
|
_mazeRunnerDoorOpened = false;
|
||||||
|
|
||||||
|
_soundReceiverDirection = 0;
|
||||||
|
_soundReceiverStartTime = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
Selenitic::~Selenitic() {
|
Selenitic::~Selenitic() {
|
||||||
|
|
|
@ -50,6 +50,8 @@ Stoneship::Stoneship(MohawkEngine_Myst *vm) :
|
||||||
_chestDrawersOpen = 0;
|
_chestDrawersOpen = 0;
|
||||||
_chestAchenarBottomDrawerClosed = 1;
|
_chestAchenarBottomDrawerClosed = 1;
|
||||||
|
|
||||||
|
_brotherDoorOpen = 0;
|
||||||
|
|
||||||
// Drop key
|
// Drop key
|
||||||
if (_state.trapdoorKeyState == 1)
|
if (_state.trapdoorKeyState == 1)
|
||||||
_state.trapdoorKeyState = 2;
|
_state.trapdoorKeyState = 2;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue