frontlib: Fixed flib_netconn_send_leaveRoom returning -1 even though there was no error.
--- 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);
}