bugfixes
This commit is contained in:
parent
2205fda141
commit
e201274673
4 changed files with 26 additions and 11 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue