mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 14:18:37 +00:00
MADS: Initialize some variables in MADSAction
This commit is contained in:
parent
13b8e1b0de
commit
d3860c573e
@ -65,6 +65,14 @@ MADSAction::MADSAction(MADSEngine *vm) : _vm(vm) {
|
||||
_savedFields._secondObjectSource = 0;
|
||||
_savedFields._articleNumber = PREP_NONE;
|
||||
_savedFields._lookFlag = false;
|
||||
|
||||
_activeAction._verbId = VERB_NONE;
|
||||
_activeAction._objectNameId = -1;
|
||||
_activeAction._indirectObjectId = -1;
|
||||
_savedFields._commandError = false;
|
||||
_verbType = VERB_INIT;
|
||||
_prepType = PREP_NONE;
|
||||
_pickedWord = -1;
|
||||
}
|
||||
|
||||
void MADSAction::clear() {
|
||||
|
@ -58,7 +58,7 @@ enum {
|
||||
VERB_WALKTO = 13
|
||||
};
|
||||
|
||||
enum VerbType { VERB_ONLY, VERB_THIS, VERB_THAT };
|
||||
enum VerbType { VERB_ONLY, VERB_THIS, VERB_THAT, VERB_INIT };
|
||||
|
||||
enum PrepType {
|
||||
PREP_NONE, PREP_WITH, PREP_TO, PREP_AT, PREP_FROM, PREP_ON, PREP_IN,
|
||||
|
Loading…
Reference in New Issue
Block a user