diff options
-rw-r--r-- | engines/saga/script.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/engines/saga/script.h b/engines/saga/script.h index 664e16bf6e..0775ebf954 100644 --- a/engines/saga/script.h +++ b/engines/saga/script.h @@ -333,7 +333,16 @@ public: } void setNoPendingVerb() { _pendingVerb = getVerbType(kVerbNone); - _currentObject[0] = _currentObject[0] = ID_NOTHING; + // TODO: Someone with knowledge of SAGA should review this. + // This initially looked like: + // _currentObject[0] = _currentObject[0] = ID_NOTHING; + // and thus was an undefined operation on _currentObject[0] + // according to the C(++) standard. + // Now the question is whether this should really reset + // both objets or just _currentObject[0]. + // In case the current code is ok, just remove the TODO, + // otherwise fix the code and remove the TODO. + _currentObject[0] = _currentObject[1] = ID_NOTHING; setPointerVerb(); } int getVerbType(VerbTypes verbType); |