Changed how modules bind so that they can override existing variables

This commit is contained in:
Deukhoofd 2018-12-07 13:51:43 +01:00
parent 98e5c1c136
commit e48a89e70d
No known key found for this signature in database
GPG Key ID: B4C087AC81641654
1 changed files with 1 additions and 1 deletions

View File

@ -252,7 +252,7 @@ namespace Upsilon.Binder
{
if (moduleVariable.Value.Local)
continue;
Scope.Variables.Add(moduleVariable.Key, moduleVariable.Value);
Scope.AssignToNearest(moduleVariable.Value);
}
}
}