mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 15:21:51 +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;
|
||||
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");
|
||||
delete this;
|
||||
|
|
Loading…
Reference in a new issue