summaryrefslogtreecommitdiff
path: root/src/client/Client.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2013-03-15 13:41:27 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2013-03-15 13:41:27 (GMT)
commitca9ea8bb8ae457acb27de61f635115e433a8e981 (patch)
tree2e5096aa014a77c4ed02070922e3449766def0c8 /src/client/Client.cpp
parent73b6ff4efb4bbe31993a595987b9abc59a5a2e76 (diff)
parent2aa483e0a2c142f46033f2f2a5285ff436afa957 (diff)
downloadpowder-ca9ea8bb8ae457acb27de61f635115e433a8e981.zip
powder-ca9ea8bb8ae457acb27de61f635115e433a8e981.tar.gz
Merge branch 'master' of github.com:FacialTurd/The-Powder-Toy
Diffstat (limited to 'src/client/Client.cpp')
-rw-r--r--src/client/Client.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/Client.cpp b/src/client/Client.cpp
index ecb6466..a43c45b 100644
--- a/src/client/Client.cpp
+++ b/src/client/Client.cpp
@@ -1725,12 +1725,14 @@ std::vector<SaveComment*> * Client::GetComments(int saveID, int start, int count
for(int j = 0; j < commentsArray.Size(); j++)
{
json::Number tempUserID = commentsArray[j]["UserID"];
- json::String tempUsername = commentsArray[j]["FormattedUsername"];
+ json::String tempUsername = commentsArray[j]["Username"];
+ json::String tempFormattedUsername = commentsArray[j]["FormattedUsername"];
json::String tempComment = commentsArray[j]["Text"];
commentArray->push_back(
new SaveComment(
tempUserID.Value(),
tempUsername.Value(),
+ tempFormattedUsername.Value(),
tempComment.Value()
)
);