Fix Model Component Serialization (#655)

* Fix model component serialization

* Update ModelComponent.h
This commit is contained in:
David Markowitz
2022-07-19 14:51:35 -07:00
committed by GitHub
parent 3dfe363a6b
commit ed5ced0bed
7 changed files with 120 additions and 111 deletions

View File

@@ -829,11 +829,11 @@ void DestroyableComponent::Smash(const LWOOBJID source, const eKillType killType
m_Parent->Kill(owner);
}
void DestroyableComponent::SetFaction(int32_t factionID) {
void DestroyableComponent::SetFaction(int32_t factionID, bool ignoreChecks) {
m_FactionIDs.clear();
m_EnemyFactionIDs.clear();
AddFaction(factionID);
AddFaction(factionID, ignoreChecks);
}
void DestroyableComponent::PushImmunity(int32_t stacks)