mirror of
https://github.com/Tha14/toxic.git
synced 2024-12-23 15:33:25 +01:00
Let windows.c actually get the tox *m.
main.c called init_windows(m), but windows.c only had init_windows(). This caused m to be NULL, which didn't cause any crashes, but it was certainly a headache for trying to do some new stuff.
This commit is contained in:
parent
454eb478dc
commit
9cb50ed538
@ -195,8 +195,9 @@ void set_active_window(int index)
|
||||
active_window = windows + index;
|
||||
}
|
||||
|
||||
ToxWindow *init_windows()
|
||||
ToxWindow *init_windows(Tox *mToAssign)
|
||||
{
|
||||
m = mToAssign;
|
||||
int n_prompt = add_window(m, new_prompt());
|
||||
|
||||
if (n_prompt == -1 || add_window(m, new_friendlist()) == -1) {
|
||||
|
Loading…
Reference in New Issue
Block a user