- Fixed: FxRandom didn't properly initialize.

SVN r1267 (trunk)
This commit is contained in:
Christoph Oelckers 2008-10-18 23:22:26 +00:00
parent 8d5b595adc
commit fff3d9c228

View file

@ -1253,7 +1253,7 @@ FxRandom::FxRandom(FRandom * r, FxExpression *mi, FxExpression *ma, const FScrip
: FxExpression(pos) : FxExpression(pos)
{ {
rng = r; rng = r;
if (min && max) if (mi && ma)
{ {
min = new FxIntCast(mi); min = new FxIntCast(mi);
max = new FxIntCast(ma); max = new FxIntCast(ma);