mirror of https://github.com/OpenTTD/OpenTTD
(svn r22033) -Fix: don't crash when there are too many objects generated already when placing transmitters
parent
05a846a574
commit
5ccf5cc551
|
@ -619,7 +619,7 @@ void GenerateObjects()
|
||||||
|
|
||||||
SetGeneratingWorldProgress(GWP_OBJECT, radiotower_to_build + lighthouses_to_build);
|
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();
|
TileIndex tile = RandomTile();
|
||||||
|
|
||||||
uint h;
|
uint h;
|
||||||
|
|
Loading…
Reference in New Issue