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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);