mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Fixed conversion bug in position_of function;
to_real no longer needs to throw exceptions when conversion fails git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1086 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
+1
-1
@@ -225,7 +225,7 @@ int Set::positionOfCard(const CardP& card, const ScriptValueP& order_by, const S
|
||||
Context& ctx = getContext(c);
|
||||
values.push_back(*order_by->eval(ctx));
|
||||
if (filter) {
|
||||
keep.push_back(*filter->eval(ctx));
|
||||
keep.push_back((bool)*filter->eval(ctx));
|
||||
}
|
||||
}
|
||||
// 3. initialize order cache
|
||||
|
||||
Reference in New Issue
Block a user