summaryrefslogtreecommitdiff
path: root/src/client/SaveInfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/SaveInfo.cpp')
-rw-r--r--src/client/SaveInfo.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/SaveInfo.cpp b/src/client/SaveInfo.cpp
index 5bb08a8..c6cafb1 100644
--- a/src/client/SaveInfo.cpp
+++ b/src/client/SaveInfo.cpp
@@ -12,7 +12,7 @@
SaveInfo::SaveInfo(SaveInfo & save) :
userName(save.userName), name(save.name), Description(save.Description), date(
save.date), Published(save.Published), id(save.id), votesUp(
- save.votesUp), votesDown(save.votesDown), gameSave(NULL), vote(save.vote), tags(save.tags), Comments(save.Comments) {
+ save.votesUp), votesDown(save.votesDown), gameSave(NULL), vote(save.vote), tags(save.tags), Comments(save.Comments), Views(save.Views) {
if(save.gameSave)
gameSave = new GameSave(*save.gameSave);
}
@@ -21,14 +21,14 @@ SaveInfo::SaveInfo(int _id, int _date, int _votesUp, int _votesDown, std::string
std::string _name) :
id(_id), votesUp(_votesUp), votesDown(_votesDown), userName(_userName), name(
_name), Description(""), date(_date), Published(
- true), gameSave(NULL), vote(0), tags(), Comments(0) {
+ true), gameSave(NULL), vote(0), tags(), Comments(0), Views(0) {
}
SaveInfo::SaveInfo(int _id, int date_, int _votesUp, int _votesDown, int _vote, std::string _userName,
std::string _name, std::string description_, bool published_, std::vector<std::string> tags_) :
id(_id), votesUp(_votesUp), votesDown(_votesDown), userName(_userName), name(
_name), Description(description_), date(date_), Published(
- published_), gameSave(NULL), vote(_vote), tags(tags_), Comments(0) {
+ published_), gameSave(NULL), vote(_vote), tags(tags_), Views(0), Comments(0) {
}
SaveInfo::~SaveInfo()