(svn r14407) -Cleanup (r14406): Remove a redundant test. (thanks SmatZ)
authorfrosch
Sat, 27 Sep 2008 17:08:03 +0000
changeset 10194 64a3dd322cd2
parent 10193 ae0dc7f699bf
child 10195 bc84fd2b1476
(svn r14407) -Cleanup (r14406): Remove a redundant test. (thanks SmatZ)
src/autoreplace_cmd.cpp
--- 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) {