mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-13 16:07:45 +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
|
@ -3284,8 +3284,8 @@ int DLevelScript::CallFunction(int argCount, int funcIndex, SDWORD *args)
|
||||||
|
|
||||||
case ACSF_CheckActorClass:
|
case ACSF_CheckActorClass:
|
||||||
{
|
{
|
||||||
AActor *a = args[0] == 0 ? (AActor *)activator : SingleActorFromTID(args[0], NULL);
|
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:
|
case ACSF_SoundSequenceOnActor:
|
||||||
|
|
Loading…
Reference in a new issue