Browse Source

Add missing message dispatch registration

working_subtitles
ZarothYe 3 years ago committed by rarified
parent
commit
d96be9ab30
  1. 2
      Sources/Plasma/FeatureLib/pfPython/plPythonFileMod.cpp

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

Loading…
Cancel
Save