(svn r22033) -Fix: don't crash when there are too many objects generated already when placing transmitters

This commit is contained in:
smatz 2011-02-08 21:49:39 +00:00
parent 05a846a574
commit 5ccf5cc551

View File

@ -619,7 +619,7 @@ void GenerateObjects()
SetGeneratingWorldProgress(GWP_OBJECT, radiotower_to_build + lighthouses_to_build);
for (uint i = ScaleByMapSize(1000); i != 0; i--) {
for (uint i = ScaleByMapSize(1000); i != 0 && Object::CanAllocateItem(); i--) {
TileIndex tile = RandomTile();
uint h;