mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-16 09:11:21 +00:00
Update inventory.zs
amount is integer, depleteordestroy should occur when amount is less than 1
This commit is contained in:
parent
8efb00189f
commit
85edffc166
1 changed files with 1 additions and 1 deletions
|
@ -923,7 +923,7 @@ class Inventory : Actor
|
|||
//===========================================================================
|
||||
virtual void DepleteBy(int by)
|
||||
{
|
||||
if (!amount || by >= amount)
|
||||
if (amount < 1 || by >= amount)
|
||||
{
|
||||
DepleteOrDestroy();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue