Skip to content

[BUG]: RemoveItem doesn't remove item but bugs your inventory #358

@NotZer0Two

Description

@NotZer0Two

Before You Report

  • I have searched for existing reports of this bug, and this bug report is unique.

Version

1.1.5

Description

When items gets removed with the method Player::RemoveItem(ItemType, int); the inventory bugs itself

To Reproduce

        int n = 2;
        player.RemoveItem(ItemType.Coin, n);

        ItemType randomShopItem = ItemType.GunAK;
        
        if (!player.IsInventoryFull)
            player.AddItem(randomShopItem);
        else
            Pickup.Create(randomShopItem, player.Position);

Expected Behavior

Shouldn't be bugging the inventory lol

Additional Information

just that the inventory doesn't work really easy to replicate

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingimportedImported to internal git

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions