# HG changeset patch # User smatz # Date 2012-01-05 19:56:48 # Node ID 9cf7ff6590c41b4cbc629e8eecb7f63813cdc933 # Parent ef33cbcd1b49af1f8c3dc045c60793cbb7853b4e (svn r23759) -Fix (r17612)[FS#4951]: the check for duplicate town names wasn't really working diff --git a/src/townname.cpp b/src/townname.cpp --- a/src/townname.cpp +++ b/src/townname.cpp @@ -97,7 +97,7 @@ bool VerifyTownName(uint32 r, const Town GetTownName(buf2, t, lastof(buf2)); buf = buf2; } - if (strcmp(buf1, buf2) == 0) return false; + if (strcmp(buf1, buf) == 0) return false; } return true;