MADS: Initialize some variables in MADSAction

This commit is contained in:
Strangerke 2014-05-27 00:01:59 +02:00
parent 13b8e1b0de
commit d3860c573e
2 changed files with 9 additions and 1 deletions

View File

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

View File

@ -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,