diff --git a/okapi.cpp b/okapi.cpp index a688584..7af3b82 100644 --- a/okapi.cpp +++ b/okapi.cpp @@ -359,7 +359,7 @@ void Okapi::get_ftf(uint uid, Caches& cc) const { json j = json::parse(curl_output); for (auto& el : j.items()) { if (el.value().is_null()) continue; - uint id = std::stoi(el.value()["cache_id"].get()); + uint id = el.value()["cache_id"]; auto c = std::find_if(cc.begin(), cc.end(), [&](const auto& a) { return a.internal_id == id; }); if (c != std::end(cc)) c->ftf = 1;