summaryrefslogtreecommitdiff
path: root/src/newgrf_station.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-05-24 21:09:00 +0000
committerrubidium <rubidium@openttd.org>2009-05-24 21:09:00 +0000
commit168ae6f7e2e87d3050c39bbb03148924751370a3 (patch)
treef231a8b93fcf344d126a8d3aa3ded9803200ca67 /src/newgrf_station.cpp
parent0d99b6c71cd096599b4805d230483f3e4e958af1 (diff)
downloadopenttd-168ae6f7e2e87d3050c39bbb03148924751370a3.tar.xz
(svn r16422) -Codechange: use const_cast for removing const and warn when const is (accidentally?) removed using C-style casts.
Diffstat (limited to 'src/newgrf_station.cpp')
-rw-r--r--src/newgrf_station.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_station.cpp b/src/newgrf_station.cpp
index eb2598c27..f3d4d4b92 100644
--- a/src/newgrf_station.cpp
+++ b/src/newgrf_station.cpp
@@ -335,7 +335,7 @@ static uint32 StationGetTriggers(const ResolverObject *object)
static void StationSetTriggers(const ResolverObject *object, int triggers)
{
- Station *st = (Station*)object->u.station.st;
+ Station *st = const_cast<Station *>(object->u.station.st);
assert(st != NULL);
st->waiting_triggers = triggers;
}