Implements variable assignment evaluation

This commit is contained in:
2019-05-29 14:55:03 +02:00
parent 6185f755a4
commit f6cf4d96dd
11 changed files with 104 additions and 8 deletions

View File

@@ -21,7 +21,7 @@ class Script {
EvalValue* _lastValue;
Evaluator* _evaluator;
unordered_map<int, EvalValue*> _scopeVariables;
unordered_map<int, EvalValue*>* _scriptVariables;
explicit Script();
@@ -40,7 +40,7 @@ public:
};
EvalValue* GetVariable(const string& key){
return _scopeVariables.at(HashedString(key).GetHash());
return _scriptVariables -> at(HashedString(key).GetHash());
}
};