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

Fix impossibug found by Coverity.

parent 9ae9a634
No related branches found
No related tags found
No related merge requests found
......@@ -1257,10 +1257,12 @@ custom_mode_adjusted(int *cur, char **opt)
uifcbail();
textmode(0);
cvmode = find_vmode(ti.currmode);
vparams[cvmode].cols = settings.custom_cols;
vparams[cvmode].rows = settings.custom_rows;
vparams[cvmode].charheight = settings.custom_fontheight;
textmode(ti.currmode);
if (cvmode >= 0) {
vparams[cvmode].cols = settings.custom_cols;
vparams[cvmode].rows = settings.custom_rows;
vparams[cvmode].charheight = settings.custom_fontheight;
textmode(ti.currmode);
}
init_uifc(TRUE, TRUE);
// Draw BBS 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