Implements variable assignment evaluation
This commit is contained in:
@@ -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());
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user