summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorplanetmaker <planetmaker@openttd.org>2013-11-04 17:59:58 +0000
committerplanetmaker <planetmaker@openttd.org>2013-11-04 17:59:58 +0000
commit86a658ca214c8fd69de8c06027185ac7e5d62b62 (patch)
tree0d5306db1ca95a43749b4bfdf684cf4d96c3ce21
parent673599941f584bce46f394ccc84aaa15e87056b6 (diff)
downloadopenttd-86a658ca214c8fd69de8c06027185ac7e5d62b62.tar.xz
(svn r25938) -Fix [FS#5798] (r25876): Don't mistake a lighthouse for a transmitter and vice versa
-rw-r--r--src/object_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/object_cmd.cpp b/src/object_cmd.cpp
index 5ae1a1d69..4c3b38bdb 100644
--- a/src/object_cmd.cpp
+++ b/src/object_cmd.cpp
@@ -746,11 +746,11 @@ void GenerateObjects()
/* Now try to place the requested amount of this object */
for (uint j = ScaleByMapSize(1000); j != 0 && amount != 0 && Object::CanAllocateItem(); j--) {
switch (i) {
- case OBJECT_LIGHTHOUSE:
+ case OBJECT_TRANSMITTER:
if (TryBuildTransmitter()) amount--;
break;
- case OBJECT_TRANSMITTER:
+ case OBJECT_LIGHTHOUSE:
if (TryBuildLightHouse()) amount--;
break;