summaryrefslogtreecommitdiff
path: root/src/network/network_client.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-10-24 16:40:02 +0000
committerrubidium <rubidium@openttd.org>2010-10-24 16:40:02 +0000
commit744bc2a614bf373b341cf8cb798a9d56ed31c155 (patch)
tree2133a92bb0cb24396709c9c98f296d5521e271c6 /src/network/network_client.h
parentc5015bb5bddd25dc912319a692b3fcbef1d030a6 (diff)
downloadopenttd-744bc2a614bf373b341cf8cb798a9d56ed31c155.tar.xz
(svn r21027) -Change/Fix: under some circumstances the file handle of the downloaded savegame wouldn't be closed, and validity of the handled wasn't checked in all cases
Diffstat (limited to 'src/network/network_client.h')
-rw-r--r--src/network/network_client.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/network/network_client.h b/src/network/network_client.h
index bdf8209a5..578b8026b 100644
--- a/src/network/network_client.h
+++ b/src/network/network_client.h
@@ -18,6 +18,9 @@
/** Class for handling the client side of the game connection. */
class ClientNetworkGameSocketHandler : public ZeroedMemoryAllocator, public NetworkGameSocketHandler {
+private:
+ FILE *download_file; ///< Handle used for downloading the savegame.
+
protected:
friend void NetworkExecuteLocalCommandQueue();
friend void NetworkClose(bool close_admins);