From aacdc3546caa90adf9acf59fe07393d85d428003 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sun, 24 Dec 2017 11:00:02 +0200 Subject: [PATCH] Fixed take ammo cheat https://forum.zdoom.org/viewtopic.php?t=58854 --- wadsrc/static/zscript/shared/player_cheat.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wadsrc/static/zscript/shared/player_cheat.txt b/wadsrc/static/zscript/shared/player_cheat.txt index 15bad043cf..949c89a3c4 100644 --- a/wadsrc/static/zscript/shared/player_cheat.txt +++ b/wadsrc/static/zscript/shared/player_cheat.txt @@ -272,7 +272,7 @@ extend class PlayerPawn if (type != null && type is deletetype) { let pack = FindInventory(type); - if (pack) pack.Destroy(); + if (pack) pack.DepleteOrDestroy(); } } }