diff options
author | Dennis Friis <peavey@inspircd.org> | 2009-05-17 05:13:29 +0200 |
---|---|---|
committer | Dennis Friis <peavey@inspircd.org> | 2009-05-17 05:13:29 +0200 |
commit | 9b4d924d74587f489ac8141134b1c504e54a0684 (patch) | |
tree | 3d65081156776ea5f2c9f325995f57f67936c139 /src | |
parent | 5dc6cd75cbf3d88988871af226d2a9be79b1b2a0 (diff) | |
download | mana-9b4d924d74587f489ac8141134b1c504e54a0684.tar.gz mana-9b4d924d74587f489ac8141134b1c504e54a0684.tar.bz2 mana-9b4d924d74587f489ac8141134b1c504e54a0684.tar.xz mana-9b4d924d74587f489ac8141134b1c504e54a0684.zip |
Init state variable to make valgrind happy.
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 2 | ||||
-rw-r--r-- | src/main.h | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp index 3c98ed27..bc010d30 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -161,7 +161,7 @@ extern Net::Connection *accountServerConnection; Graphics *graphics; Game *game = 0; -unsigned char state; +unsigned char state = STATE_NULL; std::string errorMessage; Sound sound; @@ -107,15 +107,16 @@ enum { STATE_LOGOUT_ATTEMPT, STATE_CONNECT_GAME, STATE_WAIT, - STATE_FORCE_QUIT + STATE_FORCE_QUIT, #else STATE_ACCOUNT, STATE_CHAR_CONNECT, STATE_CHAR_SERVER, STATE_CHAR_NEW, STATE_CHAR_DEL, - STATE_CONNECTING + STATE_CONNECTING, #endif + STATE_NULL }; /* length definitions for several char[]s in order |