unit_{=> get_}physical_description

develop
Jeremy Apthorp 2020-01-04 22:17:03 +11:00
parent 7644dde9e4
commit 5de368a1ed
1 changed files with 3 additions and 3 deletions

@ -541,11 +541,11 @@ string Units::getRaceName(df::unit* unit)
return getRaceNameById(unit->race);
}
void df_unit_physical_description(df::unit* unit, string* out_str)
void df_unit_get_physical_description(df::unit* unit, string* out_str)
{
static auto* const fn =
reinterpret_cast<void(THISCALL *)(df::unit*, string*)>(
Core::getInstance().vinfo->getAddress("unit_physical_description"));
Core::getInstance().vinfo->getAddress("unit_get_physical_description"));
if (fn)
fn(unit, out_str);
else
@ -556,7 +556,7 @@ string Units::getPhysicalDescription(df::unit* unit)
{
CHECK_NULL_POINTER(unit);
string str;
df_unit_physical_description(unit, &str);
df_unit_get_physical_description(unit, &str);
return str;
}