(svn r9817) -Fix [FS#772]: an assertion that was triggered by the AI building when its rating for the town was not high enough.
authorrubidium
Wed, 09 May 2007 20:50:11 +0000
changeset 6602 4f62a8312298
parent 6601 eac63c966a9e
child 6603 076b05312635
(svn r9817) -Fix [FS#772]: an assertion that was triggered by the AI building when its rating for the town was not high enough.
src/ai/default/default.cpp
--- a/src/ai/default/default.cpp	Tue May 08 16:42:48 2007 +0000
+++ b/src/ai/default/default.cpp	Wed May 09 20:50:11 2007 +0000
@@ -1792,17 +1792,15 @@
 					p->ai.state_mode = -p->ai.state_mode;
 				}
 			} else if (CheckPlayerHasMoney(cost)) {
-				int32 r;
 				// player has money, build it.
 				aib->cur_building_rule = rule;
 
-				r = AiDoBuildDefaultRailTrack(
+				AiDoBuildDefaultRailTrack(
 					aib->use_tile,
 					_default_rail_track_data[rule]->data,
 					p->ai.railtype_to_use,
 					DC_EXEC | DC_NO_TOWN_RATING
 				);
-				assert(!CmdFailed(r));
 			}
 		} while (++aib, --j);
 	}