summaryrefslogtreecommitdiff
path: root/src/client/Client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/Client.cpp')
-rw-r--r--src/client/Client.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/Client.cpp b/src/client/Client.cpp
index 4256f16..852dbb6 100644
--- a/src/client/Client.cpp
+++ b/src/client/Client.cpp
@@ -1411,6 +1411,7 @@ SaveInfo * Client::GetSave(int saveID, int saveDate)
json::Boolean tempPublished = objDocument["Published"];
json::Boolean tempFavourite = objDocument["Favourite"];
json::Number tempComments = objDocument["Comments"];
+ json::Number tempViews = objDocument["Views"];
json::Array tagsArray = objDocument["Tags"];
std::vector<std::string> tempTags;
@@ -1435,6 +1436,7 @@ SaveInfo * Client::GetSave(int saveID, int saveDate)
);
tempSave->Comments = tempComments.Value();
tempSave->Favourite = tempFavourite.Value();
+ tempSave->Views = tempViews.Value();
return tempSave;
}
catch (json::Exception &e)