svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender -r20937:21899
[blender.git] / source / gameengine / Ketsji / KX_MeshProxy.cpp
index 96e8f61e4c85d101261a2284f3fd59aa14e141e3..606ba0e16c2874e2f200d17620246309d168c1fa 100644 (file)
@@ -328,7 +328,7 @@ bool ConvertPythonToMesh(PyObject * value, RAS_MeshObject **object, bool py_none
                KX_MeshProxy *kx_mesh = static_cast<KX_MeshProxy*>BGE_PROXY_REF(value);
                
                /* sets the error */
-               if (*object==NULL) {
+               if (kx_mesh==NULL) {
                        PyErr_Format(PyExc_SystemError, "%s, " BGE_PROXY_ERROR_MSG, error_prefix);
                        return false;
                }