Merge pull request #3690 from ab9rf/tailor-fix-3685

`tailor`: remove crash
develop
Myk 2023-08-21 11:09:49 -07:00 committed by GitHub
commit 8a3c323b05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

@ -29,6 +29,7 @@ Template for new versions:
## New Features
## Fixes
- `tailor`: remove crash caused by clothing items with an invalid ``maker_race``
## Misc Improvements

@ -186,6 +186,9 @@ public:
}
if (i->getWear() >= 1)
continue;
if (i->getMakerRace() < 0) // sometimes we get borked items with no valid maker race
continue;
df::item_type t = i->getType();
int size = world->raws.creatures.all[i->getMakerRace()]->adultsize;