Browse Source

Add missing message dispatch registration

tickets/38/38/1
ZarothYe 2 years ago
parent
commit
1012251d9a
  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