Fixed error - WmudPlayer was initialized with g_new0() instead of constructor

This commit is contained in:
Gergely Polonkai 2013-01-06 21:44:23 +01:00
parent 430eacc154
commit 7e3a908120
1 changed files with 2 additions and 1 deletions

View File

@ -413,7 +413,8 @@ state_fresh(WmudClient *client)
wmud_client_send(client, "Please provide us your password: %c%c%c", TELNET_IAC, TELNET_WILL, TELNET_ECHO);
}
} else {
WmudPlayer *player = g_new0(WmudPlayer, 1);
WmudPlayer *player = wmud_player_new();
wmud_player_set_player_name(player, wmud_client_get_buffer(client)->str);
wmud_client_set_player(client, player);
wmud_client_set_state(client, WMUD_CLIENT_STATE_YESNO);