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