- Fixed: ClearActorInventory used the wrong stack index to get its parameter.

SVN r2239 (trunk)
This commit is contained in:
Randy Heit 2010-03-22 22:15:56 +00:00
parent 4c5edf00b0
commit 039b64899d

View file

@ -5365,13 +5365,13 @@ int DLevelScript::RunScript ()
break;
case PCD_CLEARACTORINVENTORY:
if (STACK(3) == 0)
if (STACK(1) == 0)
{
ClearInventory(NULL);
}
else
{
FActorIterator it(STACK(3));
FActorIterator it(STACK(1));
AActor *actor;
for (actor = it.Next(); actor != NULL; actor = it.Next())
{