1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-16 19:19:09 +00:00

(svn r8434) -Fix (r8430): Missing braces caused compilation failure for some (most?) compilers...

This commit is contained in:
2007-01-27 22:28:28 +00:00
parent f5412c1a41
commit 60ddc05925
3 changed files with 6 additions and 3 deletions

View File

@@ -2606,7 +2606,7 @@ static void MarkTrainDirty(Vehicle *v)
static void HandleTrainLoading(Vehicle *v, bool mode)
{
switch (v->current_order.type) {
case OT_LOADING:
case OT_LOADING: {
if (mode) return;
// don't mark the train as lost if we're loading on the final station.
@@ -2641,6 +2641,7 @@ static void HandleTrainLoading(Vehicle *v, bool mode)
// If this was not the final order, don't remove it from the list.
if (!(b.flags & OF_NON_STOP)) return;
break;
}
case OT_DUMMY: break;