mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-20 16:15:40 +00:00
Fixed querying of unit type abilities in the Python API,
thanks to MSchmahl for reporting.
This commit is contained in:
parent
e100a35d0b
commit
768744be94
@ -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 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user