Skip to content

Commit

Permalink
-Go action fix: Prevents commands like 'go zone stormwind' from picki…
Browse files Browse the repository at this point in the history
…ng up the 'to' in the destination.
  • Loading branch information
mostlikely4r committed Dec 8, 2023
1 parent 4b69b8c commit 8509e60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion playerbot/strategy/actions/GoAction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ bool GoAction::Execute(Event& event)
goTos.emplace(std::pair("to", 3));
for (const auto& option : goTos)
{
if (param.find(option.first) != string::npos && param.size() > option.second)
if (param.find(option.first) == 0 && param.size() > option.second)
{
string destination = param.substr(option.second);
TravelDestination* dest = nullptr;
Expand Down

0 comments on commit 8509e60

Please sign in to comment.