forked from mirror/OpenTTD
(svn r14307) -Fix: when deleting a station, remove news items regarding it
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
#include "settings_type.h"
|
||||
#include "command_func.h"
|
||||
#include "order_func.h"
|
||||
#include "news_func.h"
|
||||
|
||||
#include "table/sprites.h"
|
||||
#include "table/strings.h"
|
||||
@@ -84,6 +85,9 @@ Station::~Station()
|
||||
/* Subsidies need removal as well */
|
||||
DeleteSubsidyWithStation(index);
|
||||
|
||||
/* Remove all news items */
|
||||
DeleteStationNews(this->index);
|
||||
|
||||
xy = 0;
|
||||
|
||||
for (CargoID c = 0; c < NUM_CARGO; c++) {
|
||||
|
Reference in New Issue
Block a user