From d508472046f9c6f93a401c978d04cb5039f5a6d4 Mon Sep 17 00:00:00 2001 From: Rochet2 Date: Thu, 23 Oct 2014 11:24:08 +0300 Subject: AHBot related fixes Fix rebuild command requiring a dummy value Fix ahbot config to normal Fix sellprice setting in core. Closes #13425 --- src/server/scripts/Commands/cs_ahbot.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/server/scripts/Commands') diff --git a/src/server/scripts/Commands/cs_ahbot.cpp b/src/server/scripts/Commands/cs_ahbot.cpp index 04647d51ff0..772e1a69b21 100644 --- a/src/server/scripts/Commands/cs_ahbot.cpp +++ b/src/server/scripts/Commands/cs_ahbot.cpp @@ -146,11 +146,9 @@ public: static bool HandleAHBotRebuildCommand(ChatHandler* /*handler*/, const char* args) { char* arg = strtok((char*)args, " "); - if (!arg) - return false; bool all = false; - if (strcmp(arg, "all") == 0) + if (arg && strcmp(arg, "all") == 0) all = true; sAuctionBot->Rebuild(all); -- cgit v1.2.3