mirror of https://github.com/ZDoom/gzdoom-gles.git
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:
parent
6a02eaa595
commit
1e41c042d4
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue