mirror of
https://github.com/Tha14/toxic.git
synced 2025-06-29 13:26:44 +02:00
separate file transfer updates from callbacks
This commit is contained in:
@ -481,7 +481,7 @@ ToxWindow *get_window_ptr(int i)
|
||||
{
|
||||
ToxWindow *toxwin = NULL;
|
||||
|
||||
if (windows[i].active)
|
||||
if (i >= 0 && i <= MAX_WINDOWS_NUM && windows[i].active)
|
||||
toxwin = &windows[i];
|
||||
|
||||
return toxwin;
|
||||
|
Reference in New Issue
Block a user