Skip to content

Commit a3fbec0

Browse files
committed
Changed searchstartpos to searchorigin in ParseOptions.
1 parent 6763f34 commit a3fbec0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/MQ2Navigation.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1690,7 +1690,7 @@ void MQ2NavigationPlugin::ParseOptions(std::string_view line, int idx, Navigatio
16901690
{
16911691
options.searchRadius = GetIntFromString(value, 0);
16921692
}
1693-
else if (key == "searchstartpos")
1693+
else if (key == "searchorigin")
16941694
{
16951695
std::vector <std::string_view> parts = mq::split_view(value, ' ', false);
16961696
if (parts.size() == 3)
@@ -1702,7 +1702,7 @@ void MQ2NavigationPlugin::ParseOptions(std::string_view line, int idx, Navigatio
17021702
options.searchOrigin = { GetFloatFromString(parts[0], 0), pLocalPlayer->FloorHeight, GetFloatFromString(parts[2], 0) };
17031703
}
17041704
else
1705-
SPDLOG_ERROR("Invalid argument for searchstartpos: {}", value);
1705+
SPDLOG_ERROR("Invalid argument for searchorigin: {}", value);
17061706
}
17071707
}
17081708
catch (const std::exception& ex)

0 commit comments

Comments
 (0)