- Fix assertion failure when using FRandom.

SVN r3759 (scripting)
This commit is contained in:
Randy Heit 2012-07-14 03:10:47 +00:00
parent 562cf04db2
commit 615f49572b
1 changed files with 2 additions and 2 deletions

View File

@ -2420,8 +2420,8 @@ FxExpression *FxRandom::Resolve(FCompileContext &ctx)
RESOLVE(min, ctx); RESOLVE(min, ctx);
RESOLVE(max, ctx); RESOLVE(max, ctx);
ABORT(min && max); ABORT(min && max);
assert(min->ValueType == VAL_Int); assert(min->ValueType == ValueType.Type);
assert(max->ValueType == VAL_Int); assert(max->ValueType == ValueType.Type);
} }
return this; return this;
}; };