mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-21 07:55:36 +00:00
Fixed missing 'type' attribute for units.
This commit is contained in:
parent
5c827ccc38
commit
a9d3ad6c0d
@ -790,6 +790,7 @@ static int impl_unit_get(lua_State *L)
|
||||
}
|
||||
return_int_attrib("side", u.side());
|
||||
return_string_attrib("id", u.id());
|
||||
return_string_attrib("type", u.type_id());
|
||||
return_int_attrib("hitpoints", u.hitpoints());
|
||||
return_int_attrib("max_hitpoints", u.max_hitpoints());
|
||||
return_int_attrib("experience", u.experience());
|
||||
|
Loading…
x
Reference in New Issue
Block a user