summaryrefslogtreecommitdiff
path: root/src/network/network_content.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-02-03 17:12:19 +0000
committerrubidium <rubidium@openttd.org>2010-02-03 17:12:19 +0000
commit589aee0cee8fd72ff07fd2dc6043443e07097212 (patch)
treee68d327d0059b1c0c6636ef3bc56dfc9a263d601 /src/network/network_content.h
parentf1458df1caed833434303de9ae59f864404e4d07 (diff)
downloadopenttd-589aee0cee8fd72ff07fd2dc6043443e07097212.tar.xz
(svn r18991) -Codechange: simplify memory management of DownloadSelectedContent
Diffstat (limited to 'src/network/network_content.h')
-rw-r--r--src/network/network_content.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/network/network_content.h b/src/network/network_content.h
index ad9ab3783..ea2df4e39 100644
--- a/src/network/network_content.h
+++ b/src/network/network_content.h
@@ -65,8 +65,9 @@ struct ContentCallback {
*/
class ClientNetworkContentSocketHandler : public NetworkContentSocketHandler, ContentCallback {
protected:
+ typedef SmallVector<ContentID, 4> ContentIDList;
SmallVector<ContentCallback *, 2> callbacks; ///< Callbacks to notify "the world"
- SmallVector<ContentID, 4> requested; ///< ContentIDs we already requested (so we don't do it again)
+ ContentIDList requested; ///< ContentIDs we already requested (so we don't do it again)
ContentVector infos; ///< All content info we received
FILE *curFile; ///< Currently downloaded file