Adds support for modifying volatile scripts after adding them.
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2021-03-27 22:19:18 +01:00
parent 5cfa174396
commit e361507ec9
7 changed files with 91 additions and 14 deletions

View File

@@ -84,7 +84,10 @@ public:
asITypeInfo* t;
auto v = _baseTypes.TryGet(name);
if (!v.has_value()) {
t = this->_engine->GetTypeInfoByDecl(name.c_str());
t = _mainModule->GetTypeInfoByName(name.c_str());
if (t == NULL){
t = _engine->GetTypeInfoByDecl(name.c_str());
}
_baseTypes.Insert(name, t);
} else {
t = v.value();