Prevent crash when breeding
This commit is contained in:
parent
dc4df66548
commit
f931590bf0
@ -167,12 +167,10 @@ void cSheep::InheritFromParents(cPassiveMonster * a_Parent1, cPassiveMonster * a
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
SetFurColor(ColorInheritance[i].Child);
|
SetFurColor(ColorInheritance[i].Child);
|
||||||
m_World->BroadcastEntityMetadata(*this);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
SetFurColor(GetRandomProvider().RandBool() ? Parent1->GetFurColor() : Parent2->GetFurColor());
|
SetFurColor(GetRandomProvider().RandBool() ? Parent1->GetFurColor() : Parent2->GetFurColor());
|
||||||
m_World->BroadcastEntityMetadata(*this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user