Python's unittype.name now uses id() instead of language_name().

(fixes bug #7632)
This commit is contained in:
Elias Pschernig 2006-11-05 21:34:51 +00:00
parent cefdd66e5a
commit 575b47de80

View file

@ -52,7 +52,7 @@ static PyObject* wrapper_unittype_resistance_against(wesnoth_unittype* type, PyO
static PyObject* wrapper_unittype_get_name(wesnoth_unittype* unit, void* /*closure*/)
{
return Py_BuildValue("s",( const char* )unit->unit_type_->language_name().c_str());
return Py_BuildValue("s",( const char* )unit->unit_type_->id().c_str());
}
#define ut_get( x ) \