From 2456bd3e42d626bc070f982d0c06f380d69a5da5 Mon Sep 17 00:00:00 2001 From: David Markowitz Date: Mon, 22 Jun 2026 02:33:59 -0700 Subject: [PATCH] Update ScriptComponent.h --- dGame/dComponents/ScriptComponent.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dGame/dComponents/ScriptComponent.h b/dGame/dComponents/ScriptComponent.h index aa572b77..723df739 100644 --- a/dGame/dComponents/ScriptComponent.h +++ b/dGame/dComponents/ScriptComponent.h @@ -55,7 +55,7 @@ public: const auto boundMsg = std::bind(scriptHandler, scriptThis, std::placeholders::_1, std::placeholders::_2); auto* const parent = m_Parent; const auto castWrapper = [parent, boundMsg](GameMessages::GameMsg& msg) { - return boundMsg(*m_Parent, static_cast(msg)); + return boundMsg(*parent, static_cast(msg)); }; DerivedMsgType msg; m_Parent->RegisterMsg(msg.msgId, castWrapper);