small client bug fix

This commit is contained in:
Max-Wilhelm Bruker 2009-08-12 16:50:18 +02:00
parent 536c77f760
commit 938825f27b

View file

@ -204,6 +204,8 @@ PendingCommand *Client::cmd(const QString &s)
void Client::connectToServer(const QString &hostname, unsigned int port, const QString &_playerName, const QString &_password)
{
disconnectFromServer();
playerName = _playerName;
password = _password;
socket->connectToHost(hostname, port);