From d4962bb2ab448be87b4e0c869793e9da0949c13f Mon Sep 17 00:00:00 2001 From: Alex King <89047260+Kinglykrab@users.noreply.github.com> Date: Tue, 4 Jul 2023 23:08:29 -0400 Subject: [PATCH] [Cleanup] Move #find item summon links to front (#3483) # Notes - Move the summon links to the front so they're in a consistent location. --- zone/gm_commands/find/item.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/zone/gm_commands/find/item.cpp b/zone/gm_commands/find/item.cpp index 24a3ef46b7..a0400f5211 100644 --- a/zone/gm_commands/find/item.cpp +++ b/zone/gm_commands/find/item.cpp @@ -7,7 +7,7 @@ void FindItem(Client *c, const Seperator *sep) const auto item_id = Strings::ToUnsignedInt(sep->arg[2]); const auto* item = database.GetItem(item_id); if (item) { - auto summon_links = Saylink::Silent( + std::string summon_links = Saylink::Silent( fmt::format( "#si {}", item_id @@ -33,8 +33,8 @@ void FindItem(Client *c, const Seperator *sep) Chat::White, fmt::format( "{} | {}", - database.CreateItemLink(item_id), - summon_links + summon_links, + database.CreateItemLink(item_id) ).c_str() ); @@ -71,8 +71,8 @@ void FindItem(Client *c, const Seperator *sep) auto found_count = 0; for (const auto& e : l) { - const auto *item = database.GetItem(e); - auto summon_links = Saylink::Silent( + const auto* item = database.GetItem(e); + std::string summon_links = Saylink::Silent( fmt::format( "#si {}", e @@ -98,8 +98,8 @@ void FindItem(Client *c, const Seperator *sep) Chat::White, fmt::format( "{} | {}", - database.CreateItemLink(e), - summon_links + summon_links, + database.CreateItemLink(e) ).c_str() );