mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-16 09:11:17 +00:00
- fixed retrieval of constant for state index.
This commit is contained in:
parent
272dff6b8f
commit
b890f2b608
1 changed files with 1 additions and 1 deletions
|
@ -7886,7 +7886,7 @@ FxExpression *FxRuntimeStateIndex::Resolve(FCompileContext &ctx)
|
||||||
delete this;
|
delete this;
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
else if (Index->isConstant() && static_cast<FxConstant *>(Index)->GetValue() < 0)
|
else if (Index->isConstant() && static_cast<FxConstant *>(Index)->GetValue().GetInt() < 0)
|
||||||
{
|
{
|
||||||
ScriptPosition.Message(MSG_ERROR, "State index must be positive");
|
ScriptPosition.Message(MSG_ERROR, "State index must be positive");
|
||||||
delete this;
|
delete this;
|
||||||
|
|
Loading…
Reference in a new issue