Python's unittype.name now uses id() instead of language_name().
(fixes bug #7632)
This commit is contained in:
parent
cefdd66e5a
commit
575b47de80
1 changed files with 1 additions and 1 deletions
|
@ -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 ) \
|
||||
|
|
Loading…
Add table
Reference in a new issue