# | Line 102 | Line 102 | bool SelectionEvaluator::loadScriptFileInternal(const | |
---|---|---|
102 | } | |
103 | ||
104 | bool SelectionEvaluator::loadScriptFileInternal(const std::string & filename) { | |
105 | < | ifstream ifs(filename.c_str()); |
105 | > | std::ifstream ifs(filename.c_str()); |
106 | if (!ifs.is_open()) { | |
107 | return false; | |
108 | } | |
# | Line 319 | Line 319 | void SelectionEvaluator::predefine(const std::string& | |
319 | int tok = statement[1].tok; | |
320 | if (tok == Token::identifier || (tok & Token::predefinedset) == Token::predefinedset) { | |
321 | std::string variable = boost::any_cast<std::string>(statement[1].value); | |
322 | < | variables.insert(std::make_pair(variable, statement)); |
322 | > | variables.insert(VariablesType::value_type(variable, statement)); |
323 | ||
324 | } else { | |
325 | evalError("invalid variable name:" + script); | |
# | Line 386 | Line 386 | BitSet SelectionEvaluator::evaluate() { | |
386 | BitSet SelectionEvaluator::evaluate() { | |
387 | BitSet bs(nStuntDouble); | |
388 | if (isLoaded_) { | |
389 | + | pc = 0; |
390 | instructionDispatchLoop(bs); | |
391 | } | |
392 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |