summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;