summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2012-01-05 19:56:48 +0000
committersmatz <smatz@openttd.org>2012-01-05 19:56:48 +0000
commit597ef4e7b18555027ed3db25b43392f3d33f190e (patch)
tree8498f68e265519bd618b04914295aa336d941300
parentee0fcb25670d1b559cdfdb31e6b7d0da4ec3713d (diff)
downloadopenttd-597ef4e7b18555027ed3db25b43392f3d33f190e.tar.xz
(svn r23759) -Fix (r17612)[FS#4951]: the check for duplicate town names wasn't really working
-rw-r--r--src/townname.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/townname.cpp b/src/townname.cpp
index 6b5731321..644a6030d 100644
--- a/src/townname.cpp
+++ b/src/townname.cpp
@@ -97,7 +97,7 @@ bool VerifyTownName(uint32 r, const TownNameParams *par)
GetTownName(buf2, t, lastof(buf2));
buf = buf2;
}
- if (strcmp(buf1, buf2) == 0) return false;
+ if (strcmp(buf1, buf) == 0) return false;
}
return true;