This commit is contained in:
onezplpl 2024-07-20 22:00:39 -04:00
parent 2205fda141
commit e201274673
No known key found for this signature in database
GPG key ID: 7EC026A136F9EEC3
4 changed files with 26 additions and 11 deletions

View file

@ -197,7 +197,7 @@ void control_rclick(double cx, double cy, vec3 pos, struct item *inv,
for (int i = 0; i < 10; i++) {
if (inv[i].id == inv[slot].id) {
inv[i].count--;
if (inv[i].count == 0) {
if (inv[i].count < 1) {
inv[i].id = 0;
inv[i].count = 0;
}