mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
- fixed: 'give' inventory functions ignored an items MaxAmount setting.
This commit is contained in:
parent
f4ab6074fa
commit
355f70986a
1 changed files with 1 additions and 0 deletions
|
@ -680,6 +680,7 @@ AInventory *AInventory::CreateCopy (AActor *other)
|
|||
{
|
||||
AInventory *copy;
|
||||
|
||||
Amount = MIN(Amount, MaxAmount);
|
||||
if (GoAway ())
|
||||
{
|
||||
copy = static_cast<AInventory *>(Spawn (GetClass(), 0, 0, 0, NO_REPLACE));
|
||||
|
|
Loading…
Reference in a new issue