Skip to content

Commit

Permalink
tr1/inv-ring: fix item counts staying at 1
Browse files Browse the repository at this point in the history
Resolves #2390. Regression made in 529d482.
  • Loading branch information
rr- committed Jan 25, 2025
1 parent 4a4f4ef commit 4365c87
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion src/tr1/game/inventory_ring/control.c
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,6 @@ INV_RING *InvRing_Open(const INVENTORY_MODE mode)

g_InvRing_Source[RT_MAIN].current = 0;
for (int32_t i = 0; i < g_InvRing_Source[RT_MAIN].count; i++) {
g_InvRing_Source[RT_MAIN].qtys[i] = 1;
InvRing_InitInvItem(g_InvRing_Source[RT_MAIN].items[i]);
}
g_InvRing_Source[RT_OPTION].current = 0;
Expand Down
1 change: 1 addition & 0 deletions src/tr2/game/inventory_ring/control.c
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,7 @@ INV_RING *InvRing_Open(const INVENTORY_MODE mode)
InvRing_InitInvItem(g_InvRing_Source[RT_MAIN].items[i]);
}
for (int32_t i = 0; i < g_InvRing_Source[RT_OPTION].count; i++) {
g_InvRing_Source[RT_OPTION].qtys[i] = 1;
InvRing_InitInvItem(g_InvRing_Source[RT_OPTION].items[i]);
}

Expand Down

0 comments on commit 4365c87

Please sign in to comment.