Fix weight calculation

Closes #60
This commit is contained in:
Alexander Batalov 2023-03-01 09:50:13 +03:00
parent 7bbfa8b7dd
commit 931abf5525

View File

@ -2314,7 +2314,7 @@ Object* inven_right_hand(Object* critter)
Inventory* inventory;
Object* item;
if (i_rhand != NULL) {
if (i_rhand != NULL && critter == inven_dude) {
return i_rhand;
}
@ -2336,7 +2336,7 @@ Object* inven_left_hand(Object* critter)
Inventory* inventory;
Object* item;
if (i_lhand != NULL) {
if (i_lhand != NULL && critter == inven_dude) {
return i_lhand;
}
@ -2358,7 +2358,7 @@ Object* inven_worn(Object* critter)
Inventory* inventory;
Object* item;
if (i_worn != NULL) {
if (i_worn != NULL && critter == inven_dude) {
return i_worn;
}