summaryrefslogtreecommitdiff
path: root/src/ship_cmd.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-09-13 10:19:51 +0000
committersmatz <smatz@openttd.org>2008-09-13 10:19:51 +0000
commit66be028ad4bb32758115ad10e542104b80d79eed (patch)
tree13719aee50b7d6e902e7f4499a4cd1c9311ea099 /src/ship_cmd.cpp
parentfc62d736f700ca344531a96ca02324695af8d761 (diff)
downloadopenttd-66be028ad4bb32758115ad10e542104b80d79eed.tar.xz
(svn r14307) -Fix: when deleting a station, remove news items regarding it
Diffstat (limited to 'src/ship_cmd.cpp')
-rw-r--r--src/ship_cmd.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ship_cmd.cpp b/src/ship_cmd.cpp
index 8d28a406c..cd7fe29a1 100644
--- a/src/ship_cmd.cpp
+++ b/src/ship_cmd.cpp
@@ -351,7 +351,8 @@ static void ShipArrivesAt(const Vehicle* v, Station* st)
STR_9833_CITIZENS_CELEBRATE_FIRST,
(v->owner == _local_player) ? NS_ARRIVAL_PLAYER : NS_ARRIVAL_OTHER,
v->index,
- 0);
+ st->index
+ );
}
}