From 946b59f02f6224e8a915bba143b75a5326b360c3 Mon Sep 17 00:00:00 2001 From: David Markowitz Date: Wed, 6 Mar 2024 03:19:49 -0800 Subject: [PATCH] fix incorrect script grab for trigger --- dGame/dComponents/TriggerComponent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dGame/dComponents/TriggerComponent.cpp b/dGame/dComponents/TriggerComponent.cpp index 7d88d3b9..e43ebc5d 100644 --- a/dGame/dComponents/TriggerComponent.cpp +++ b/dGame/dComponents/TriggerComponent.cpp @@ -183,7 +183,7 @@ std::vector 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){