diff --git a/src/thingdef/thingdef_expression.cpp b/src/thingdef/thingdef_expression.cpp index ebe10c467..429efb323 100644 --- a/src/thingdef/thingdef_expression.cpp +++ b/src/thingdef/thingdef_expression.cpp @@ -1253,7 +1253,7 @@ FxRandom::FxRandom(FRandom * r, FxExpression *mi, FxExpression *ma, const FScrip : FxExpression(pos) { rng = r; - if (min && max) + if (mi && ma) { min = new FxIntCast(mi); max = new FxIntCast(ma);