Skip to content
Snippets Groups Projects
Commit 39a2487e authored by deuce's avatar deuce
Browse files

Set the ID for newly added list entries. Prevents bug where usage stats

for newly added items weren't updated until after the list was re-read.

Thanks Electrosys
parent 3e8bd329
No related branches found
No related tags found
No related merge requests found
......@@ -786,6 +786,7 @@ struct bbslist *show_bbslist(int mode)
list[listcount]=list[listcount-1];
list[listcount-1]=(struct bbslist *)malloc(sizeof(struct bbslist));
memcpy(list[listcount-1],&defaults,sizeof(struct bbslist));
list[listcount-1]->id=listcount-1;
uifc.changes=0;
uifc.helpbuf= "`BBS Name`\n\n"
"Enter the BBS name as it is to appear in the list.";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment