forked from bartvdbraak/blender
BGE bug #18963: obj.sendMessage() with 4 arguments crashes Blender.
This commit is contained in:
parent
dfef0746e4
commit
0795d8237d
@ -2793,7 +2793,7 @@ KX_PYMETHODDEF_DOC_VARARGS(KX_GameObject, sendMessage,
|
||||
char* to = (char *)"";
|
||||
const STR_String& from = GetName();
|
||||
|
||||
if (!PyArg_ParseTuple(args, "s|sss:sendMessage", &subject, &body, &to))
|
||||
if (!PyArg_ParseTuple(args, "s|ss:sendMessage", &subject, &body, &to))
|
||||
return NULL;
|
||||
|
||||
scene->GetNetworkScene()->SendMessage(to, from, subject, body);
|
||||
|
Loading…
Reference in New Issue
Block a user