mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
Added new_card function;
Added parameter to ScriptValue::next to recieve the key of the item. Finished Add Multiple Cards behaviour. git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1147 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -479,9 +479,10 @@ void Context::makeObject(size_t n) {
|
||||
for (size_t i = 0 ; i < n ; ++i) {
|
||||
const ScriptValueP& key = stack[begin + 2 * i];
|
||||
const ScriptValueP& val = stack[begin + 2 * i + 1];
|
||||
ret->value.push_back(val);
|
||||
if (key != script_nil) { // valid key
|
||||
ret->key_value[key->toString()] = val;
|
||||
} else {
|
||||
ret->value.push_back(val);
|
||||
}
|
||||
}
|
||||
stack.resize(begin);
|
||||
|
||||
Reference in New Issue
Block a user