Skip to content

Commit

Permalink
Fixed warning logs causing illegal instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon committed Aug 20, 2024
1 parent a13e5ef commit d18d8bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GuildWarsPartySearch.Bot/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ static bool send_maps_unlocked(easywsclient::WebSocket::pointer websocket) {
// Server has send a websocket message asking this bot to travel
static bool on_server_requested_travel(nlohmann::json& data) {
if (!data["map_id"].is_number()) {
LogWarn("on_server_requesting_travel: requested map_id is missing or not a number", data.dump());
LogWarn("on_server_requesting_travel: requested map_id is missing or not a number\n%s", data.dump().c_str());
return false;
}
const auto requested_map_id = data["map_id"].get<uint32_t>();
Expand All @@ -620,7 +620,7 @@ static bool on_server_requested_travel(nlohmann::json& data) {
return false;
}
if (!data["district"].is_number()) {
LogWarn("on_server_requesting_travel: requested district is missing or not a number", data.dump());
LogWarn("on_server_requesting_travel: requested district is missing or not a number\n%s", data.dump().c_str());
return false;
}
const auto requested_district = data["district"].get<uint32_t>();
Expand Down

0 comments on commit d18d8bc

Please sign in to comment.