From c9e889723b7af832322d178975e6e440d6cd3ae5 Mon Sep 17 00:00:00 2001 From: LDA Date: Mon, 26 Jun 2023 11:48:27 -0700 Subject: resolved most of the compiler warnings/errors under gcc also update xxhash and tinyformat --- source/frontend/StarClientCommandProcessor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/frontend/StarClientCommandProcessor.cpp') diff --git a/source/frontend/StarClientCommandProcessor.cpp b/source/frontend/StarClientCommandProcessor.cpp index 535403d..bf9a434 100644 --- a/source/frontend/StarClientCommandProcessor.cpp +++ b/source/frontend/StarClientCommandProcessor.cpp @@ -332,7 +332,7 @@ String ClientCommandProcessor::giveEssentialItem(StringList const& arguments) { auto slot = EssentialItemNames.getLeft(arguments.at(1)); m_universeClient->mainPlayer()->inventory()->setEssentialItem(slot, item); return strf("Put %s in player slot %s", item->name(), arguments.at(1)); - } catch (MapException e) { + } catch (MapException const& e) { return strf("Invalid essential item slot %s.", arguments.at(1)); } } -- cgit v1.2.3