Fixed a mistake

This commit is contained in:
Maxim Biro 2013-08-11 16:56:02 -04:00
parent ee95bf08af
commit e427197580

View File

@ -496,8 +496,8 @@ static void check_friend_connectionstatus(int friendnumber, uint8_t status)
return;
if (status == NOFRIEND)
return;
const uint8_t is_connected = friendlist[friendnumber].status == FRIEND_ONLINE;
const uint8_t was_connected = status == FRIEND_ONLINE;
const uint8_t was_connected = friendlist[friendnumber].status == FRIEND_ONLINE;
const uint8_t is_connected = status == FRIEND_ONLINE;
if (is_connected != was_connected)
friend_connectionstatuschange(friendnumber, is_connected);
}