src/ai/trolly/build.cpp
changeset 6946 a48b23f1cc8a
parent 6943 1914f26aee04
child 6950 14ecb0acdfb4
--- a/src/ai/trolly/build.cpp	Mon Jun 18 14:40:07 2007 +0000
+++ b/src/ai/trolly/build.cpp	Mon Jun 18 16:42:40 2007 +0000
@@ -206,7 +206,7 @@
 						return 0;
 					}
 
-					if (!CmdFailed(res)) cost += res;
+					if (CmdSucceeded(res)) cost += res;
 				}
 				// Go to the next tile
 				part++;