Skip to content

Commit

Permalink
More windows warnings fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
razterizer committed Oct 3, 2024
1 parent ca05902 commit ec8bb14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Inventory.h
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ namespace dung

InvSubGroup* fetch_subgroup(int subgroup_idx)
{
if (math::in_range<int>(subgroup_idx, 0, m_subgroups.size(), Range::ClosedOpen))
if (math::in_range<int>(subgroup_idx, 0, stlutils::sizeI(m_subgroups), Range::ClosedOpen))
return &m_subgroups[subgroup_idx];
else
{
Expand Down
2 changes: 1 addition & 1 deletion Keyboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ namespace dung
{
if (m_player.has_weight_capacity(key.weight))
{
m_player.key_idcs.emplace_back(key_idx);
m_player.key_idcs.emplace_back(static_cast<int>(key_idx));
key.picked_up = true;
message_handler->add_message(static_cast<float>(real_time_s),
"You picked up a key!", MessageHandler::Level::Guide);
Expand Down

0 comments on commit ec8bb14

Please sign in to comment.