1
0
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:
Jman012 2013-09-17 20:19:46 -07:00
parent 454eb478dc
commit 9cb50ed538

View File

@ -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) {