mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-01 08:31:45 +00:00
Fixed crash on attempt to get actor state named 'None'
https://forum.zdoom.org/viewtopic.php?t=57885
This commit is contained in:
parent
e6b6cb354b
commit
e081a0d810
1 changed files with 2 additions and 2 deletions
|
@ -336,7 +336,7 @@ static bool VerifyJumpTarget(PClassActor *cls, FState *CallingState, int index)
|
||||||
|
|
||||||
FState *FStateLabelStorage::GetState(int pos, PClassActor *cls, bool exact)
|
FState *FStateLabelStorage::GetState(int pos, PClassActor *cls, bool exact)
|
||||||
{
|
{
|
||||||
if (pos > 0x10000000)
|
if (pos >= 0x10000000)
|
||||||
{
|
{
|
||||||
return cls? cls->FindState(ENamedName(pos - 0x10000000)) : nullptr;
|
return cls? cls->FindState(ENamedName(pos - 0x10000000)) : nullptr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue