From 8eb5baa427381cd4a7bc206d958bc9c91194866a Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 22 Feb 2007 19:03:50 +0000 Subject: [PATCH] show proper interrogate name instead of 'type' --- dtool/src/interrogatedb/py_panda.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dtool/src/interrogatedb/py_panda.cxx b/dtool/src/interrogatedb/py_panda.cxx index 3b662cbfbe..68efbf02eb 100644 --- a/dtool/src/interrogatedb/py_panda.cxx +++ b/dtool/src/interrogatedb/py_panda.cxx @@ -82,7 +82,7 @@ DTOOL_Call_GetPointerThisClass(PyObject *self, Dtool_PyTypedObject *classdef, str << function_name << "() argument " << param << " must be "; - PyObject *fname = PyObject_GetAttrString((PyObject *)classdef->_PyType.ob_type, "__name__"); + PyObject *fname = PyObject_GetAttrString((PyObject *)classdef, "__name__"); if (fname != (PyObject *)NULL) { str << PyString_AsString(fname); Py_DECREF(fname);