diff options
Diffstat (limited to 'core/Messenger.c')
-rw-r--r-- | core/Messenger.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Messenger.c b/core/Messenger.c index 65a73876..cc22a7f5 100644 --- a/core/Messenger.c +++ b/core/Messenger.c | |||
@@ -72,7 +72,7 @@ int getfriend_id(uint8_t * client_id) | |||
72 | //return -1 if failure. | 72 | //return -1 if failure. |
73 | int getclient_id(int friend_id, uint8_t * client_id) | 73 | int getclient_id(int friend_id, uint8_t * client_id) |
74 | { | 74 | { |
75 | if(friendnumber >= numfriends || friendnumber < 0) | 75 | if(friend_id >= numfriends || friend_id < 0) |
76 | { | 76 | { |
77 | return -1; | 77 | return -1; |
78 | } | 78 | } |