Merged 15170:15635 from trunk (no conflicts or even merges)
[blender.git] / source / gameengine / Ketsji / KXNetwork / KX_NetworkMessageActuator.cpp
index 3ade810c394a195477f4f54f73a468a844a62d70..85921ae75ca549dbc556a50af3d7a08dc496fd08 100644 (file)
@@ -158,6 +158,9 @@ PyObject* KX_NetworkMessageActuator::PySetToPropName(
        if (PyArg_ParseTuple(args, "s", &ToPropName)) {
             m_toPropName = ToPropName;
        }
+       else {
+               return NULL;
+       }
 
        Py_Return;
 }
@@ -173,7 +176,10 @@ PyObject* KX_NetworkMessageActuator::PySetSubject(
        if (PyArg_ParseTuple(args, "s", &Subject)) {
             m_subject = Subject;
        }
-
+       else {
+               return NULL;
+       }
+       
        Py_Return;
 }
 
@@ -188,6 +194,9 @@ PyObject* KX_NetworkMessageActuator::PySetBodyType(
        if (PyArg_ParseTuple(args, "i", &BodyType)) {
             m_bodyType = BodyType;
        }
+       else {
+               return NULL;
+       }
 
        Py_Return;
 }
@@ -203,6 +212,9 @@ PyObject* KX_NetworkMessageActuator::PySetBody(
        if (PyArg_ParseTuple(args, "s", &Body)) {
             m_body = Body;
        }
+       else {
+               return NULL;
+       }
 
        Py_Return;
 }