summaryrefslogtreecommitdiff
path: root/station_cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'station_cmd.c')
-rw-r--r--station_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/station_cmd.c b/station_cmd.c
index 135081c6d..469d6ce81 100644
--- a/station_cmd.c
+++ b/station_cmd.c
@@ -153,7 +153,7 @@ RoadStop *AllocateRoadStop(void)
* TODO - This is just a temporary stage, this will be removed. */
for (rs = GetRoadStop(0); rs != NULL; rs = (rs->index + 1 < GetRoadStopPoolSize()) ? GetRoadStop(rs->index + 1) : NULL) {
if (!IsValidRoadStop(rs)) {
- uint index = rs->index;
+ RoadStopID index = rs->index;
memset(rs, 0, sizeof(*rs));
rs->index = index;