diff --git a/direct/src/plugin/p3dPythonRun.cxx b/direct/src/plugin/p3dPythonRun.cxx index c559f1f80f..c8a7df9766 100755 --- a/direct/src/plugin/p3dPythonRun.cxx +++ b/direct/src/plugin/p3dPythonRun.cxx @@ -1294,7 +1294,7 @@ xml_to_pyobj(TiXmlElement *xvalue) { if (key != NULL) { PyObject *item = xml_to_pyobj(xitem); if (item != NULL) { - PyObject_SetAttrString(obj, key, item); + PyObject_SetAttrString(obj, (char *)key, item); Py_DECREF(item); } }