Needed to cast to a PyObject*

This commit is contained in:
2009-05-28 10:31:56 +00:00
parent 970f9f3ee2
commit a843d7e316

View File

@@ -1370,7 +1370,7 @@ static void pyrna_subtype_set_rna(PyObject *newclass, StructRNA *srna)
if (RNA_struct_py_type_get(srna))
PyObSpit("RNA WAS SET - ", RNA_struct_py_type_get(srna));
Py_XDECREF(RNA_struct_py_type_get(srna));
Py_XDECREF(((PyObject *)RNA_struct_py_type_get(srna)));
RNA_struct_py_type_set(srna, (void *)newclass); /* Store for later use */