1
0

Prevent crash when breeding

This commit is contained in:
Mat 2020-04-16 00:15:01 +03:00 committed by Alexander Harkness
parent dc4df66548
commit f931590bf0

View File

@ -167,12 +167,10 @@ void cSheep::InheritFromParents(cPassiveMonster * a_Parent1, cPassiveMonster * a
)
{
SetFurColor(ColorInheritance[i].Child);
m_World->BroadcastEntityMetadata(*this);
return;
}
}
SetFurColor(GetRandomProvider().RandBool() ? Parent1->GetFurColor() : Parent2->GetFurColor());
m_World->BroadcastEntityMetadata(*this);
}