src/news_gui.cpp
changeset 10152 919cffdd5d2e
parent 9272 83630e52b5fe
child 10218 aa6d38761cc4
equal deleted inserted replaced
10151:9af8e9f342b7 10152:919cffdd5d2e
   996 
   996 
   997 			/* If this is the last news item, invalidate _latest_news */
   997 			/* If this is the last news item, invalidate _latest_news */
   998 			if (_total_news == 0) {
   998 			if (_total_news == 0) {
   999 				assert(_latest_news == _oldest_news);
   999 				assert(_latest_news == _oldest_news);
  1000 				_latest_news = INVALID_NEWS;
  1000 				_latest_news = INVALID_NEWS;
       
  1001 				_current_news = INVALID_NEWS;
  1001 			}
  1002 			}
  1002 
  1003 
  1003 			/* Since we only imitate a FIFO removing an arbitrary element does need
  1004 			/* Since we only imitate a FIFO removing an arbitrary element does need
  1004 			 * some magic. Remove the item by shifting head towards the tail. eg
  1005 			 * some magic. Remove the item by shifting head towards the tail. eg
  1005 			 *    oldest    remove  last
  1006 			 *    oldest    remove  last