(svn r1170) Fix: news_gui.c should compile everywhere without warnings now.

This commit is contained in:
dominik 2004-12-19 13:06:20 +00:00
parent 4d94803d32
commit 18dd7ebae2

View File

@ -258,7 +258,7 @@ void AddNewsItem(StringID string, uint32 flags, uint data_a, uint data_b)
/* To add a news item with an attached validation function. This validation function /* To add a news item with an attached validation function. This validation function
* makes sure that the news item is not outdated when the newspaper pops up. */ * makes sure that the news item is not outdated when the newspaper pops up. */
void AddValidatedNewsItem(StringID string, uint32 flags, uint data_a, uint data_b, ValidationProc validation) void AddValidatedNewsItem(StringID string, uint32 flags, uint data_a, uint data_b, ValidationProc *validation)
{ {
AddNewsItem(string, flags, data_a, data_b); AddNewsItem(string, flags, data_a, data_b);
_news_items[_latest_news].isValid = validation; _news_items[_latest_news].isValid = validation;