Browse Source

silly python headers

David Rose 16 years ago
parent
commit
6794656499
1 changed files with 1 additions and 1 deletions
  1. 1 1
      direct/src/plugin/p3dPythonRun.cxx

+ 1 - 1
direct/src/plugin/p3dPythonRun.cxx

@@ -1294,7 +1294,7 @@ xml_to_pyobj(TiXmlElement *xvalue) {
         if (key != NULL) {
         if (key != NULL) {
           PyObject *item = xml_to_pyobj(xitem);
           PyObject *item = xml_to_pyobj(xitem);
           if (item != NULL) {
           if (item != NULL) {
-            PyObject_SetAttrString(obj, key, item);
+            PyObject_SetAttrString(obj, (char *)key, item);
             Py_DECREF(item);
             Py_DECREF(item);
           }
           }
         }
         }