summaryrefslogtreecommitdiff
path: root/src/client/Client.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-06-10 18:53:46 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-06-10 18:53:46 (GMT)
commit5eb9370fc185103f3f8700f7da31525d5e862f81 (patch)
treecd24aec476ceb8afd0bae15b1b7f814b144dc767 /src/client/Client.cpp
parentfd572e9da68385d13a147164cd07d50160f2fc69 (diff)
downloadpowder-5eb9370fc185103f3f8700f7da31525d5e862f81.zip
powder-5eb9370fc185103f3f8700f7da31525d5e862f81.tar.gz
Uncomment bounds checking for stamp loading
Diffstat (limited to 'src/client/Client.cpp')
-rw-r--r--src/client/Client.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/client/Client.cpp b/src/client/Client.cpp
index 68e59e0..f31ad08 100644
--- a/src/client/Client.cpp
+++ b/src/client/Client.cpp
@@ -328,11 +328,11 @@ int Client::GetStampsCount()
vector<string> Client::GetStamps(int start, int count)
{
- //if(start+count > stampIDs.size()) {
- // if(start > stampIDs.size())
- // return vector<string>();
- // count = stampIDs.size()-start;
- //}
+ if(start+count > stampIDs.size()) {
+ if(start > stampIDs.size())
+ return vector<string>();
+ count = stampIDs.size()-start;
+ }
vector<string> stampRange;
int index = 0;