From 3716de4c967f604e2d90c5b95f6e930a074462c8 Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Fri, 19 Jul 2024 13:42:25 +0800 Subject: [PATCH] [Command] Fix sell item command --- src/strategy/actions/SellAction.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/strategy/actions/SellAction.cpp b/src/strategy/actions/SellAction.cpp index cafe9192..9bcf8dac 100644 --- a/src/strategy/actions/SellAction.cpp +++ b/src/strategy/actions/SellAction.cpp @@ -74,7 +74,7 @@ bool SellAction::Execute(Event event) return true; } - if (text == "all") + if (text != "") { std::vector items = parseItems(text, ITERATE_ITEMS_IN_BAGS); for (Item *item : items) @@ -84,7 +84,7 @@ bool SellAction::Execute(Event event) return true; } - botAI->TellError("Usage: s gray/*/vendor/all"); + botAI->TellError("Usage: s gray/*/vendor/[item link]"); return false; }