frontlib: Fixed flib_netconn_send_leaveRoom returning -1 even though there was no error.
authorMedo <smaxein@googlemail.com>
Thu, 02 Aug 2012 16:35:12 +0200
changeset 7458 fec6fa1e460e
parent 7455 8e86d8d2927d
child 7461 38acbfdb484f
frontlib: Fixed flib_netconn_send_leaveRoom returning -1 even though there was no error.
project_files/frontlib/net/netconn_send.c
--- a/project_files/frontlib/net/netconn_send.c	Wed Aug 01 21:13:39 2012 +0200
+++ b/project_files/frontlib/net/netconn_send.c	Thu Aug 02 16:35:12 2012 +0200
@@ -134,7 +134,7 @@
 int flib_netconn_send_leaveRoom(flib_netconn *conn, const char *str) {
 	int result = -1;
 	if(flib_netconn_is_in_room_context(conn)) {
-		int result = (str && *str) ? sendStr(conn, "PART", str) : sendVoid(conn, "PART");
+		result = (str && *str) ? sendStr(conn, "PART", str) : sendVoid(conn, "PART");
 		if(!result) {
 			netconn_leaveRoom(conn);
 		}