Fixed codegen crash with non-numeric random seed

The following code crashed ZScript code generator if my_seed is not convertible to numeric type
SetRandomSeed[my_random_id](my_seed);
This commit is contained in:
alexey.lysiuk 2018-02-19 11:46:36 +02:00
parent 6a02eaa595
commit 1e41c042d4
1 changed files with 1 additions and 1 deletions

View File

@ -5945,7 +5945,7 @@ FxRandomSeed::~FxRandomSeed()
FxExpression *FxRandomSeed::Resolve(FCompileContext &ctx) FxExpression *FxRandomSeed::Resolve(FCompileContext &ctx)
{ {
CHECKRESOLVED(); CHECKRESOLVED();
RESOLVE(seed, ctx); SAFE_RESOLVE(seed, ctx);
return this; return this;
}; };