From 64b7de0339a7841247919148bbb4deeba4a55001 Mon Sep 17 00:00:00 2001 From: Josh Cooper Date: Mon, 18 Apr 2022 22:08:23 -0700 Subject: [PATCH] Revises getVerb signature --- library/modules/EventManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/modules/EventManager.cpp b/library/modules/EventManager.cpp index 543a2bafc..6e7435029 100644 --- a/library/modules/EventManager.cpp +++ b/library/modules/EventManager.cpp @@ -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 ) {