diff options
author | rubidium <rubidium@openttd.org> | 2013-11-22 21:50:43 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2013-11-22 21:50:43 +0000 |
commit | 2e54c8fdfa237f84e8d48b30bf4811ba7ed84327 (patch) | |
tree | 7ce2441341e514ccc4225d692f5c8d64b881e75c /src/network/network_internal.h | |
parent | bdd62a4b3e3df6282122a7c4353e6fef632f9c32 (diff) | |
download | openttd-2e54c8fdfa237f84e8d48b30bf4811ba7ed84327.tar.xz |
(svn r26056) -Fix: a number of possibly uninitialised variables
Diffstat (limited to 'src/network/network_internal.h')
-rw-r--r-- | src/network/network_internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/network_internal.h b/src/network/network_internal.h index 938682981..e46f20792 100644 --- a/src/network/network_internal.h +++ b/src/network/network_internal.h @@ -154,6 +154,8 @@ bool IsNetworkCompatibleVersion(const char *version); * Everything we need to know about a command to be able to execute it. */ struct CommandPacket : CommandContainer { + /** Make sure the pointer is NULL. */ + CommandPacket() : next(NULL) {} CommandPacket *next; ///< the next command packet (if in queue) CompanyByte company; ///< company that is executing the command uint32 frame; ///< the frame in which this packet is executed |