Merged 15170:15635 from trunk (no conflicts or even merges)
[blender.git] / source / gameengine / Ketsji / KX_SoundActuator.cpp
index 949156571a7de05a19b5d6326744f1cecd631749..34a3baec0933f29a5895048ed8f190d464261a08 100644 (file)
@@ -291,7 +291,8 @@ PyObject* KX_SoundActuator::PyGetFilename(PyObject* self, PyObject* args, PyObje
        char* name = objectname.Ptr();
        
        if (!name) {
-               Py_Return;                                      /* internal error */
+               PyErr_SetString(PyExc_RuntimeError, "Unable to get sound filename");
+               return NULL;
        } else
                return PyString_FromString(name);
 }