Fix smashables not counting towards whole team (#944)

This commit is contained in:
David Markowitz
2023-01-06 21:06:24 -08:00
committed by GitHub
parent bad3845d83
commit 8bcb4bd36d

View File

@@ -701,7 +701,7 @@ void DestroyableComponent::Smash(const LWOOBJID source, const eKillType killType
auto* missions = owner->GetComponent<MissionComponent>();
if (missions != nullptr) {
if (team != nullptr && isEnemy) {
if (team != nullptr) {
for (const auto memberId : team->members) {
auto* member = EntityManager::Instance()->GetEntity(memberId);