src/news_gui.cpp
branchNewGRF_ports
changeset 10994 cd9968b6f96b
parent 10991 d8811e327d12
equal deleted inserted replaced
10991:d8811e327d12 10994:cd9968b6f96b
   526 	if (_forced_news == ni) {
   526 	if (_forced_news == ni) {
   527 		/* about to remove the currently forced item; skip to next */
   527 		/* about to remove the currently forced item; skip to next */
   528 		MoveToNextItem();
   528 		MoveToNextItem();
   529 	}
   529 	}
   530 
   530 
   531 	if ((_current_news == ni) && (FindWindowById(WC_MESSAGE_HISTORY, 0) != NULL)) {
   531 	if ((_current_news == ni) && (FindWindowById(WC_NEWS_WINDOW, 0) != NULL)) {
   532 		/* about to remove the currently displayed item; also skip */
   532 		/* about to remove the currently displayed item; also skip */
   533 		MoveToNextItem();
   533 		MoveToNextItem();
   534 	}
   534 	}
   535 
   535 
   536 	/* delete item */
   536 	/* delete item */