diff options
author | rubidium <rubidium@openttd.org> | 2008-08-01 15:07:31 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-08-01 15:07:31 +0000 |
commit | 2b6978e48e0f043309e8b096dd66fad50f212d53 (patch) | |
tree | 576a694ab2c4d476304db029d7a6e392d43aa596 /src/rail_cmd.cpp | |
parent | 0a67e72df55348a9bd64f9bbe9f77205e753ed4b (diff) | |
download | openttd-2b6978e48e0f043309e8b096dd66fad50f212d53.tar.xz |
(svn r13912) -Codechange: remove some casts by returning the proper type instead of void*.
Diffstat (limited to 'src/rail_cmd.cpp')
-rw-r--r-- | src/rail_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp index 38e8cf7fe..8fa027a6d 100644 --- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -92,7 +92,7 @@ const byte _track_sloped_sprites[14] = { */ -void *EnsureNoTrainOnTrackProc(Vehicle *v, void *data) +Vehicle *EnsureNoTrainOnTrackProc(Vehicle *v, void *data) { TrackBits rail_bits = *(TrackBits *)data; @@ -1162,7 +1162,7 @@ CommandCost CmdRemoveSignalTrack(TileIndex tile, uint32 flags, uint32 p1, uint32 } /** Update power of train under which is the railtype being converted */ -void *UpdateTrainPowerProc(Vehicle *v, void *data) +Vehicle *UpdateTrainPowerProc(Vehicle *v, void *data) { /* Similiar checks as in TrainPowerChanged() */ |