mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
- Fixed: ClearActorInventory used the wrong stack index to get its parameter.
SVN r2239 (trunk)
This commit is contained in:
parent
4c5edf00b0
commit
039b64899d
1 changed files with 2 additions and 2 deletions
|
@ -5365,13 +5365,13 @@ int DLevelScript::RunScript ()
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PCD_CLEARACTORINVENTORY:
|
case PCD_CLEARACTORINVENTORY:
|
||||||
if (STACK(3) == 0)
|
if (STACK(1) == 0)
|
||||||
{
|
{
|
||||||
ClearInventory(NULL);
|
ClearInventory(NULL);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
FActorIterator it(STACK(3));
|
FActorIterator it(STACK(1));
|
||||||
AActor *actor;
|
AActor *actor;
|
||||||
for (actor = it.Next(); actor != NULL; actor = it.Next())
|
for (actor = it.Next(); actor != NULL; actor = it.Next())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue