hp_max is a property, not a function

This commit is contained in:
Enno Rehling 2004-03-19 00:07:32 +00:00
parent 2f3fa88af5
commit 30de17d1e8
1 changed files with 2 additions and 2 deletions

View File

@ -197,8 +197,7 @@ bind_unit(lua_State * L)
.def_readonly("region", &unit::region)
.def_readonly("faction", &unit::faction)
.def_readonly("id", &unit::no)
.def_readwrite("hp", &unit::hp)
.def("hp_max", &unit_hpmax)
.def_readwrite("hp", &unit::hp)
.def("get_item", &unit_getitem)
.def("add_item", &unit_additem)
.def("get_skill", &unit_getskill)
@ -211,5 +210,6 @@ bind_unit(lua_State * L)
.property("familiarspells", &unit_familiarspells, return_stl_iterator)
.property("number", &unit_getnumber, &unit_setnumber)
.property("race", &unit_getrace, &unit_setrace)
.property("hp_max", &unit_hpmax)
];
}