changeset 18910:b8b329975ee3 draft

(svn r23759) -Fix (r17612)[FS#4951]: the check for duplicate town names wasn't really working
author smatz <smatz@openttd.org>
date Thu, 05 Jan 2012 19:56:48 +0000
parents 403293ec3333
children e48659f8d5c4
files src/townname.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/townname.cpp
+++ b/src/townname.cpp
@@ -97,7 +97,7 @@
 			GetTownName(buf2, t, lastof(buf2));
 			buf = buf2;
 		}
-		if (strcmp(buf1, buf2) == 0) return false;
+		if (strcmp(buf1, buf) == 0) return false;
 	}
 
 	return true;