From 597ef4e7b18555027ed3db25b43392f3d33f190e Mon Sep 17 00:00:00 2001 From: smatz Date: Thu, 5 Jan 2012 19:56:48 +0000 Subject: (svn r23759) -Fix (r17612)[FS#4951]: the check for duplicate town names wasn't really working --- src/townname.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3-70-g09d2