about summary refs log tree commit diff stats
path: root/src/invapi.cpp
diff options
context:
space:
mode:
authorComradeCrow <comradecrow@vivaldi.net>2023-04-25 20:28:08 -0700
committerComradeCrow <comradecrow@vivaldi.net>2023-04-25 20:28:08 -0700
commitcf0ab4d19100846a9850a3cc39110d8d8cfd1607 (patch)
tree8077c8eacaf3d7f6161d8bff232ec0571a07c797 /src/invapi.cpp
parent407a6f2507c784918a1c77ade4114c706f2c1e34 (diff)
downloadytcpp-cf0ab4d19100846a9850a3cc39110d8d8cfd1607.tar.gz
broken
Diffstat (limited to 'src/invapi.cpp')
-rw-r--r--src/invapi.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invapi.cpp b/src/invapi.cpp
index b96d18b..1433c10 100644
--- a/src/invapi.cpp
+++ b/src/invapi.cpp
@@ -24,7 +24,7 @@ vector<string> getInstances() {
 
     json j = json::parse(r.text);
     for ( json i: j ) {
-        if ( i[1]["api"] != json::value_t::null && i[1]["api"]) {
+        if ( i.at(1).at("api") != json::value_t::null && i.at(1).at("api")) {
 
             result.push_back( i[1]["uri"] );
         }