mirror of
https://github.com/alexbatalov/fallout1-ce.git
synced 2024-09-04 13:59:08 +00:00
parent
b7e6fcc22b
commit
406b69b0fc
@ -2263,7 +2263,7 @@ void use_inventory_on(Object* a1)
|
|||||||
if (immode == INVENTORY_WINDOW_CURSOR_ARROW) {
|
if (immode == INVENTORY_WINDOW_CURSOR_ARROW) {
|
||||||
inven_action_cursor(keyCode, INVENTORY_WINDOW_TYPE_USE_ITEM_ON);
|
inven_action_cursor(keyCode, INVENTORY_WINDOW_TYPE_USE_ITEM_ON);
|
||||||
} else {
|
} else {
|
||||||
int inventoryItemIndex = pud->length - (stack_offset[curr_stack] + keyCode - 1000 + 1);
|
int inventoryItemIndex = stack_offset[curr_stack] + keyCode - 1000;
|
||||||
if (inventoryItemIndex < pud->length) {
|
if (inventoryItemIndex < pud->length) {
|
||||||
InventoryItem* inventoryItem = &(pud->items[inventoryItemIndex]);
|
InventoryItem* inventoryItem = &(pud->items[inventoryItemIndex]);
|
||||||
if (isInCombat()) {
|
if (isInCombat()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user