diff options
author | rubidium <rubidium@openttd.org> | 2007-05-09 20:50:11 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-05-09 20:50:11 +0000 |
commit | 4500c365e1b599ee0034242f958506dca6c6b6ad (patch) | |
tree | 6e3a64666a03966f1602181824af2d8c095e3f60 /src/ai/default/default.cpp | |
parent | e6a6d7ef311ff99cf994f14f341a85a8c693c827 (diff) | |
download | openttd-4500c365e1b599ee0034242f958506dca6c6b6ad.tar.xz |
(svn r9817) -Fix [FS#772]: an assertion that was triggered by the AI building when its rating for the town was not high enough.
Diffstat (limited to 'src/ai/default/default.cpp')
-rw-r--r-- | src/ai/default/default.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ai/default/default.cpp b/src/ai/default/default.cpp index c224e065a..e61f3a635 100644 --- a/src/ai/default/default.cpp +++ b/src/ai/default/default.cpp @@ -1792,17 +1792,15 @@ static void AiStateBuildDefaultRailBlocks(Player *p) 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); } |