Skip to content

Commit

Permalink
Fix MSVC warnings in stores.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
obligaron authored and AJenbo committed Dec 17, 2023
1 parent c8b8996 commit ecb781d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/stores.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ bool StoreAutoPlace(Item &item, bool persistItem)
return AutoPlaceItemInInventory(player, item, persistItem, true);
}

void ScrollVendorStore(Item *itemData, int storeLimit, int idx, int selling = true)
void ScrollVendorStore(Item *itemData, size_t storeLimit, int idx, int selling = true)
{
ClearSText(5, 21);
stextup = 5;
Expand All @@ -370,7 +370,7 @@ void ScrollVendorStore(Item *itemData, int storeLimit, int idx, int selling = tr
if (stextsel != -1 && !stext[stextsel].isSelectable() && stextsel != BackButtonLine())
stextsel = stextdown;
} else {
stextsmax = std::max(storeLimit - 4, 0);
stextsmax = std::max(static_cast<int>(storeLimit) - 4, 0);
}
}

Expand Down

0 comments on commit ecb781d

Please sign in to comment.