Merge branch 'maint'

This commit is contained in:
Christoph Oelckers 2013-08-13 08:53:23 +02:00
commit 9ebf345fec

View file

@ -5242,7 +5242,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] : -1;
int chance = argCount >= 4? args[3] : 256;
const PClass *cls = PClass::FindClass(type);
int cnt = 0;
if (cls != NULL)