diff --git a/src/p_acs.cpp b/src/p_acs.cpp index 57a4c51c0c..905fa574fc 100644 --- a/src/p_acs.cpp +++ b/src/p_acs.cpp @@ -5238,7 +5238,7 @@ doplaysound: if (funcIndex == ACSF_PlayActorSound) const char *type = FBehavior::StaticLookupString(args[1]); int amount = argCount >= 3? args[2] : -1; int chance = argCount >= 4? args[3] : 256; - const PClass *cls = PClass::FindClass(type); + PClassActor *cls = PClass::FindActor(type); int cnt = 0; if (cls != NULL) {