mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-23 08:03:01 +01:00
Fixed segfault
This commit is contained in:
parent
ed3e9b476d
commit
b210068c1d
@ -11,6 +11,7 @@
|
|||||||
#include "chat_commands.h"
|
#include "chat_commands.h"
|
||||||
#include "global_commands.h"
|
#include "global_commands.h"
|
||||||
#include "toxic_windows.h"
|
#include "toxic_windows.h"
|
||||||
|
|
||||||
#include <curses.h>
|
#include <curses.h>
|
||||||
#include <AL/al.h>
|
#include <AL/al.h>
|
||||||
#include <AL/alc.h>
|
#include <AL/alc.h>
|
||||||
|
@ -473,7 +473,7 @@ static void friendlist_onAv(ToxWindow *self, ToxAv *av)
|
|||||||
{
|
{
|
||||||
int id = toxav_get_peer_id(av, 0);
|
int id = toxav_get_peer_id(av, 0);
|
||||||
/*id++;*/
|
/*id++;*/
|
||||||
if ( id >= max_friends_index)
|
if ( id != ErrorInternal && id >= max_friends_index)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Tox* m = toxav_get_tox(av);
|
Tox* m = toxav_get_tox(av);
|
||||||
|
Loading…
Reference in New Issue
Block a user