diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index 3c83e6eb..d491d9b5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -908,8 +908,8 @@ int main(int argc, char *argv[]) state = STATE_GAME; } - else if (state == STATE_CONNECT_SERVER && - Net::getLoginHandler()->isConnected()) + else if (state == STATE_CONNECT_SERVER && (Net::getLoginHandler() && + Net::getLoginHandler()->isConnected())) { Net::getCharHandler()->setCharInfo(&charInfo); state = STATE_LOGIN; |