Changed how modules bind so that they can override existing variables

This commit is contained in:
Deukhoofd committed 2018-12-07 13:51:43 +01:00
1 parent 98e5c1c136
commit e48a89e70d
1 file changed
+1 -1
+1 -1
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);
}
}
}