ZVISION: Fix usage of Puzzle struct to use 'key' instead of 'id'

This commit is contained in:
richiesams 2013-07-03 15:46:36 -05:00
parent 1710468121
commit 0b9dce40a0

View File

@ -52,7 +52,7 @@ void ScriptManager::parseScrFile(Common::String fileName) {
if (line.matchString("puzzle:*", true)) {
Puzzle puzzle;
sscanf(line.c_str(),"puzzle:%u",&(puzzle.id));
sscanf(line.c_str(),"puzzle:%u",&(puzzle.key));
parsePuzzle(puzzle, file);
_puzzles.push_back(puzzle);
@ -95,7 +95,7 @@ Criteria ScriptManager::parseCriteria(Common::SeekableReadStream &stream) const
// Parse the id out of the first token
token = tokenizer.nextToken();
sscanf(token.c_str(), "[%u]", &(criteria.id));
sscanf(token.c_str(), "[%u]", &(criteria.key));
// Parse the operator out of the second token
token = tokenizer.nextToken();