diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-11-05 15:42:21 +1100 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-11-05 15:42:21 +1100 |
commit | 7151c0cd9ebfc5180bfc663ddfbe5a670b42f195 (patch) | |
tree | 6d5c3db889c6f695f02350a58d8a74e5e115a5e2 /source/frontend/StarClientCommandProcessor.cpp | |
parent | c2ec41c391ced5fb7c3b17002967869bbe614b6a (diff) |
fix /startquest parsing the argument in an annoying way
Diffstat (limited to 'source/frontend/StarClientCommandProcessor.cpp')
-rw-r--r-- | source/frontend/StarClientCommandProcessor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/frontend/StarClientCommandProcessor.cpp b/source/frontend/StarClientCommandProcessor.cpp index ac87397..e0fe827 100644 --- a/source/frontend/StarClientCommandProcessor.cpp +++ b/source/frontend/StarClientCommandProcessor.cpp @@ -245,7 +245,7 @@ String ClientCommandProcessor::startQuest(String const& argumentsString) { if (!adminCommandAllowed()) return "You must be an admin to use this command."; - auto questArc = QuestArcDescriptor::fromJson(Json::parse(arguments.at(0))); + auto questArc = QuestArcDescriptor::fromJson(Json::parseSequence(arguments.at(0)).get(0)); m_universeClient->questManager()->offer(make_shared<Quest>(questArc, 0, m_universeClient->mainPlayer().get())); return "Quest started"; } |