summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-05-19 21:25:20 +0000
committerrubidium <rubidium@openttd.org>2009-05-19 21:25:20 +0000
commit26070726ac475aac8d1d2ee247ea0fe37aa3f294 (patch)
tree8800d4d5128ea059993cb3d190c59b71fce0f350 /src
parent9f4d64bda06a449e2b1c528e342be5bb12a1623b (diff)
downloadopenttd-26070726ac475aac8d1d2ee247ea0fe37aa3f294.tar.xz
(svn r16361) -Fix: pointer incremented with wrong count
Diffstat (limited to 'src')
-rw-r--r--src/network/network_content.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/network_content.cpp b/src/network/network_content.cpp
index 3b94c34b4..0dab801c1 100644
--- a/src/network/network_content.cpp
+++ b/src/network/network_content.cpp
@@ -187,7 +187,7 @@ void ClientNetworkContentSocketHandler::RequestContentList(uint count, const Con
this->Send_Packet(p);
count -= p_count;
- content_ids += count;
+ content_ids += p_count;
}
}
@@ -271,7 +271,7 @@ void ClientNetworkContentSocketHandler::DownloadSelectedContent(uint &files, uin
this->Send_Packet(p);
count -= p_count;
- content_ids += count;
+ content_ids += p_count;
}
free(ids);