Silence a -Wsign-compare warning for invlist indices

This commit is contained in:
Desour 2023-06-12 18:58:00 +02:00 committed by DS
parent dade95e142
commit c549e84abb
1 changed files with 2 additions and 2 deletions

View File

@ -4376,7 +4376,7 @@ bool GUIFormSpecMenu::OnEvent(const SEvent& event)
ItemStack slct = list_selected->getItem(m_selected_item->i);
for (s32 i = 0; i < list_s->getSize(); i++) {
for (s32 i = 0; i < (s32)list_s->getSize(); i++) {
// Skip the selected slot
if (i == m_selected_item->i)
continue;
@ -4556,7 +4556,7 @@ bool GUIFormSpecMenu::OnEvent(const SEvent& event)
// Pickup all of the item from the list
if (slct.count > 0) {
for (s32 i = 0; i < list_s->getSize(); i++) {
for (s32 i = 0; i < (s32)list_s->getSize(); i++) {
// Skip the selected slot
if (i == s.i)
continue;