(svn r26056) -Fix: a number of possibly uninitialised variables

This commit is contained in:
rubidium
2013-11-22 21:50:43 +00:00
parent 7ecfd60b96
commit bebf2291db
6 changed files with 13 additions and 9 deletions

View File

@@ -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