diff --git a/roadveh_gui.c b/roadveh_gui.c index 06737a5019..7c246ba5c9 100644 --- a/roadveh_gui.c +++ b/roadveh_gui.c @@ -513,7 +513,7 @@ static void DrawRoadDepotWindow(Window *w) /* locate the depot struct */ for (d = _depots; d->xy != (TileIndex)tile; d++) { - assert(d < endof(_depots); + assert(d < endof(_depots)); } SetDParam(0, d->town_index); diff --git a/ship_gui.c b/ship_gui.c index e90077aed6..65d4de0c07 100644 --- a/ship_gui.c +++ b/ship_gui.c @@ -647,7 +647,7 @@ static void DrawShipDepotWindow(Window *w) /* locate the depot struct */ for (d = _depots; d->xy != (TileIndex)tile; d++) { - assert(d < endof(_depots); + assert(d < endof(_depots)); } SetDParam(0, d->town_index); diff --git a/train_gui.c b/train_gui.c index b590eb29b6..d52f233071 100644 --- a/train_gui.c +++ b/train_gui.c @@ -334,7 +334,7 @@ static void DrawTrainDepotWindow(Window *w) /* locate the depot struct */ for (d = _depots; d->xy != (TileIndex)tile; d++) { - assert(d < endof(_depots); + assert(d < endof(_depots)); } SetDParam(0, d->town_index);