(svn r14307) -Fix: when deleting a station, remove news items regarding it

This commit is contained in:
smatz
2008-09-13 10:19:51 +00:00
parent fc62d736f7
commit 66be028ad4
8 changed files with 40 additions and 6 deletions

View File

@@ -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++) {