diff options
Diffstat (limited to 'src/train_cmd.cpp')
-rw-r--r-- | src/train_cmd.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index c551d1872..98c2dac06 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -1603,10 +1603,10 @@ static void ReverseTrainSwapVeh(Vehicle *v, int l, int r) if (!(b->u.rail.track & 0x80)) b->direction = ReverseDir(b->direction); /* swap more variables */ - swap_int32(&a->x_pos, &b->x_pos); - swap_int32(&a->y_pos, &b->y_pos); - swap_tile(&a->tile, &b->tile); - swap_byte(&a->z_pos, &b->z_pos); + SwapT(&a->x_pos, &b->x_pos); + SwapT(&a->y_pos, &b->y_pos); + SwapT(&a->tile, &b->tile); + SwapT(&a->z_pos, &b->z_pos); SwapTrainFlags(&a->u.rail.flags, &b->u.rail.flags); |