- fixed chance default for ACS's DropItem.

This commit is contained in:
Christoph Oelckers 2013-08-13 08:52:53 +02:00
parent 072b66fb9f
commit 1b79f7d956

View file

@ -5241,7 +5241,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)