progsig: Fix test remove rail action clearing signal programs.

This could be triggered by using shift, using the land info window, etc.
This commit is contained in:
Jonathan G Rennison
2015-10-03 14:28:47 +01:00
parent b2b9c0a070
commit 0577d7cbf8

View File

@@ -645,7 +645,7 @@ CommandCost CmdRemoveSingleRail(TileIndex tile, DoCommandFlag flags, uint32 p1,
/* Charge extra to remove signals on the track, if they are there */
if (HasSignalOnTrack(tile, track)) {
CheckRemoveSignal(tile, track);
if (flags & DC_EXEC) CheckRemoveSignal(tile, track);
cost.AddCost(DoCommand(tile, track, 0, flags, CMD_REMOVE_SIGNALS));
}