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:
twanvl
2008-08-07 19:39:06 +00:00
parent 7eb05cbd7e
commit ee9060077b
2 changed files with 43 additions and 22 deletions
+1 -1
View File
@@ -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