mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 15:02:01 +00:00
Fixed internal Dehacked support
https://mantis.zdoom.org/view.php?id=619
This commit is contained in:
parent
e4c73cfc5f
commit
173fa31383
1 changed files with 1 additions and 1 deletions
|
@ -2844,7 +2844,7 @@ static bool LoadDehSupp ()
|
|||
|
||||
sc.MustGetStringName(",");
|
||||
sc.MustGetNumber();
|
||||
if (s.State == NULL || !actortype->OwnsState(s.State + sc.Number))
|
||||
if (s.State == NULL || sc.Number < 1 || !actortype->OwnsState(s.State + sc.Number - 1))
|
||||
{
|
||||
sc.ScriptError("Invalid state range in '%s'", type->TypeName.GetChars());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue