mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 15:02:39 +00:00
- Fixed: CheckActorClass needed a NULL check.
SVN r2191 (trunk)
This commit is contained in:
parent
f014b8f98b
commit
5c4af020d9
1 changed files with 2 additions and 2 deletions
|
@ -3285,7 +3285,7 @@ int DLevelScript::CallFunction(int argCount, int funcIndex, SDWORD *args)
|
|||
case ACSF_CheckActorClass:
|
||||
{
|
||||
AActor *a = args[0] == 0 ? (AActor *)activator : SingleActorFromTID(args[0], NULL);
|
||||
return a->GetClass()->TypeName == FName(FBehavior::StaticLookupString(args[1]));
|
||||
return a == NULL ? false : a->GetClass()->TypeName == FName(FBehavior::StaticLookupString(args[1]));
|
||||
}
|
||||
|
||||
case ACSF_SoundSequenceOnActor:
|
||||
|
|
Loading…
Reference in a new issue