mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 23:01:59 +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.MustGetStringName(",");
|
||||||
sc.MustGetNumber();
|
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());
|
sc.ScriptError("Invalid state range in '%s'", type->TypeName.GetChars());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue