Revises getVerb signature

develop
Josh Cooper 2022-04-18 22:08:23 -07:00 committed by Myk
parent 018d189494
commit 64b7de0339
1 changed files with 2 additions and 2 deletions

@ -1028,8 +1028,8 @@ static void manageUnitAttackEvent(color_ostream& out) {
}
}
static std::string getVerb(df::unit* unit, std::string reportStr) {
std::string result(std::move(reportStr));
static std::string getVerb(df::unit* unit, const std::string &reportStr) {
std::string result(reportStr);
std::string name = unit->name.first_name + " ";
bool match = strncmp(result.c_str(), name.c_str(), name.length()) == 0;
if ( match ) {