mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 23:01:59 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue