BGE bug #18963: obj.sendMessage() with 4 arguments crashes Blender.

This commit is contained in:
Benoit Bolsee 2009-08-31 15:28:43 +00:00
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);