ZVISION: Fix typo in Puzzle checking

This commit is contained in:
richiesams 2013-08-05 19:10:19 -05:00
parent 435ed16e03
commit 387bfb2806

View File

@ -84,7 +84,7 @@ void ScriptManager::checkPuzzleCriteria() {
for (Common::List<Puzzle::Criteria>::iterator iter = puzzle->criteriaList.begin(); iter != puzzle->criteriaList.end(); iter++) {
// Get the value to compare against
uint argumentValue;
if ((*iter).argument)
if ((*iter).argumentIsAKey)
argumentValue = getStateValue(iter->argument);
else
argumentValue = iter->argument;