mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
Implement unique IDs and card linking
This commit is contained in:
@@ -279,14 +279,14 @@ void Context::setVariable(Variable name, const ScriptValueP& value) {
|
||||
// keep shadow copy
|
||||
Binding bind = {name, var};
|
||||
shadowed.push_back(bind);
|
||||
}
|
||||
if (!var.global_scope) {
|
||||
var.global_scope = false;
|
||||
}
|
||||
if (!var.global_scope) {
|
||||
var.global_scope = false;
|
||||
}
|
||||
var.level = level;
|
||||
var.value = value;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void Context::setGlobalVariable(Variable name, const ScriptValueP& value) {
|
||||
#ifdef _DEBUG
|
||||
assert((size_t)name < variable_names.size());
|
||||
|
||||
Reference in New Issue
Block a user