mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r1170) Fix: news_gui.c should compile everywhere without warnings now.
This commit is contained in:
parent
4d94803d32
commit
18dd7ebae2
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user