Fixed querying of unit type abilities in the Python API,

thanks to MSchmahl for reporting.
This commit is contained in:
Elias Pschernig 2007-03-23 19:19:59 +00:00
parent e100a35d0b
commit 768744be94

View File

@ -75,7 +75,7 @@ static PyObject* wrapper_unittype_get_##x( wesnoth_unittype* type, void* /*closu
#define ut_get_ability( x ) \
static PyObject* wrapper_unittype_get_##x( wesnoth_unittype* type, void* /*closure*/ ) \
{ \
return Py_BuildValue("i",type->unit_type_->has_ability("##x##")); \
return Py_BuildValue("i",type->unit_type_->has_ability(#x)); \
}
ut_get_ability( heals )