(svn r14407) -Cleanup (r14406): Remove a redundant test. (thanks SmatZ)
--- a/src/autoreplace_cmd.cpp Sat Sep 27 14:58:46 2008 +0000
+++ b/src/autoreplace_cmd.cpp Sat Sep 27 17:08:03 2008 +0000
@@ -382,10 +382,8 @@
*single_unit = new_v;
}
- if (cost.Succeeded()) {
- /* Sell the old vehicle */
- cost.AddCost(DoCommand(0, old_v->index, 0, flags, GetCmdSellVeh(old_v)));
- }
+ /* Sell the old vehicle */
+ cost.AddCost(DoCommand(0, old_v->index, 0, flags, GetCmdSellVeh(old_v)));
/* If we are not in DC_EXEC undo everything */
if ((flags & DC_EXEC) == 0) {