Skip to content

Commit

Permalink
unit_{=> get_}physical_description
Browse files Browse the repository at this point in the history
  • Loading branch information
nornagon committed Jan 4, 2020
1 parent 7644dde commit 5de368a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions library/modules/Units.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;
}

Expand Down

0 comments on commit 5de368a

Please sign in to comment.