tailor: try to squash toad clothing bug

this adds a test for an unmapped clothing size which will at least stop the making of toad-sized clothing. a diagnostic is issued when this happens as it is a bug
develop
Kelly Kinkade 2023-02-16 14:37:10 -06:00
parent 85dfe2a547
commit 4d9deb8eca
1 changed files with 7 additions and 0 deletions

@ -405,6 +405,13 @@ public:
std::tie(ty, sub, size) = o.first;
int count = o.second;
if (sizes.count(size) == 0)
{
WARN(cycle).print("tailor: cannot determine race for clothing of size %d, skipped\n",
size);
continue;
}
if (count > 0)
{
std::vector<int16_t> v;