Skip to content

Commit

Permalink
Inventory: Use accessor
Browse files Browse the repository at this point in the history
  • Loading branch information
dscharrer committed Aug 14, 2021
1 parent fa4f5c6 commit c4a6562
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game/Inventory.cpp
Expand Up @@ -248,12 +248,12 @@ struct EntityInventoryAccess {

[[nodiscard]] INVENTORY_SLOT & index(index_type bag, index_type x, index_type y) {
ARX_UNUSED(bag);
return m_data->slot[x][y];
return m_data->get(Vec3s(x, y, bag));
}

[[nodiscard]] const INVENTORY_SLOT & index(index_type bag, index_type x, index_type y) const {
ARX_UNUSED(bag);
return m_data->slot[x][y];
return m_data->get(Vec3s(x, y, bag));
}

[[nodiscard]] index_type bags() const {
Expand Down

0 comments on commit c4a6562

Please sign in to comment.