diff options
Diffstat (limited to 'src/newgrf_station.cpp')
-rw-r--r-- | src/newgrf_station.cpp | 2 |
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; } |