fix incorrect script grab for trigger

This commit is contained in:
David Markowitz 2024-03-06 03:19:49 -08:00
parent e76996f98f
commit 946b59f02f

View File

@ -183,7 +183,7 @@ std::vector<Entity*> TriggerComponent::GatherTargets(LUTriggers::Command* comman
}
void TriggerComponent::HandleFireEvent(Entity* targetEntity, std::string args) {
m_Parent->GetScript()->OnFireEventServerSide(targetEntity, m_Parent, args, 0, 0, 0);
targetEntity->GetScript()->OnFireEventServerSide(targetEntity, m_Parent, args, 0, 0, 0);
}
void TriggerComponent::HandleDestroyObject(Entity* targetEntity, std::string args){