add cast to make gcc happy

develop
Kelly Kinkade 2023-11-16 07:52:48 -06:00
parent 6f64ee833e
commit 35cd415095
1 changed files with 1 additions and 1 deletions

@ -298,7 +298,7 @@ public:
auto ty = w->getType(); auto ty = w->getType();
auto makerRace = w->getMakerRace(); 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; continue;
int isize = world->raws.creatures.all[makerRace]->adultsize; int isize = world->raws.creatures.all[makerRace]->adultsize;