From 615f49572b93b833534edc2219957199e045382c Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Sat, 14 Jul 2012 03:10:47 +0000 Subject: [PATCH] - Fix assertion failure when using FRandom. SVN r3759 (scripting) --- src/thingdef/thingdef_expression.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/thingdef/thingdef_expression.cpp b/src/thingdef/thingdef_expression.cpp index 1b8d0c4d58..9f17e56781 100644 --- a/src/thingdef/thingdef_expression.cpp +++ b/src/thingdef/thingdef_expression.cpp @@ -2420,8 +2420,8 @@ FxExpression *FxRandom::Resolve(FCompileContext &ctx) RESOLVE(min, ctx); RESOLVE(max, ctx); ABORT(min && max); - assert(min->ValueType == VAL_Int); - assert(max->ValueType == VAL_Int); + assert(min->ValueType == ValueType.Type); + assert(max->ValueType == ValueType.Type); } return this; };