From d96be9ab30870bc0a88afdee6b6afffd4f4424f8 Mon Sep 17 00:00:00 2001 From: ZarothYe Date: Fri, 25 Feb 2022 01:07:40 -0600 Subject: [PATCH] Add missing message dispatch registration --- Sources/Plasma/FeatureLib/pfPython/plPythonFileMod.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/Plasma/FeatureLib/pfPython/plPythonFileMod.cpp b/Sources/Plasma/FeatureLib/pfPython/plPythonFileMod.cpp index cfc2dc90..f32d64d5 100644 --- a/Sources/Plasma/FeatureLib/pfPython/plPythonFileMod.cpp +++ b/Sources/Plasma/FeatureLib/pfPython/plPythonFileMod.cpp @@ -830,6 +830,8 @@ void plPythonFileMod::AddTarget(plSceneObject* sobj) // the message that is spammed to anyone who will listen plgDispatch::Dispatch()->RegisterForExactType(plAIBrainCreatedMsg::Index(), GetKey()); } + if (fPyFunctionInstances[kfunc_OnSubtitleMsg]) + plgDispatch::Dispatch()->RegisterForExactType(plSubtitleMsg::Index(), GetKey()); // As the last thing... call the OnInit function if they have one if ( fPyFunctionInstances[kfunc_Init] != nil )