From 35cd415095e3822b3b303f0968bb7a21d94dd389 Mon Sep 17 00:00:00 2001 From: Kelly Kinkade Date: Thu, 16 Nov 2023 07:52:48 -0600 Subject: [PATCH] add cast to make gcc happy --- plugins/tailor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/tailor.cpp b/plugins/tailor.cpp index 920f253c0..8dbe952b1 100644 --- a/plugins/tailor.cpp +++ b/plugins/tailor.cpp @@ -298,7 +298,7 @@ public: auto ty = w->getType(); auto makerRace = w->getMakerRace(); - if (makerRace < 0 || makerRace >= world->raws.creatures.all.size()) + if (makerRace < 0 || makerRace >= (int16_t) world->raws.creatures.all.size()) continue; int isize = world->raws.creatures.all[makerRace]->adultsize;