2
3
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-14 14:37:41 +00:00

Turn std::strings into char* before doing PyObject_CallMethod with them

This commit is contained in:
ZarothYe
2022-02-25 12:14:44 -06:00
committed by rarified
parent d96be9ab30
commit 3360ac478e

View File

@ -2792,7 +2792,7 @@ hsBool plPythonFileMod::MsgReceive(plMessage* msg)
plProfile_BeginTiming(PythonUpdate);
PyObject* retVal = PyObject_CallMethod(
fPyFunctionInstances[kfunc_OnSubtitleMsg], fFunctionNames[kfunc_OnSubtitleMsg],
"ss", pSubMsg->GetText(), pSubMsg->GetSpeaker());
"ss", pSubMsg->GetText().c_str(), pSubMsg->GetSpeaker().c_str());
if (retVal == nil)
{
#ifndef PLASMA_EXTERNAL_RELEASE