summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-02-05 22:50:33 +0000
committertron <tron@openttd.org>2005-02-05 22:50:33 +0000
commit7aae12d55db82fc5faeed1cfcf5e4f460a277218 (patch)
tree68059d4827f8ac3262d8aecaf7170b7109c27180 /misc.c
parent4d62bbf857ed840c62d54428111aa5de6811d4bb (diff)
downloadopenttd-7aae12d55db82fc5faeed1cfcf5e4f460a277218.tar.xz
(svn r1808) Use strcmp() instead of home brewed function str_eq()
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc.c b/misc.c
index 9eaa4ab20..c4e0a8df1 100644
--- a/misc.c
+++ b/misc.c
@@ -352,7 +352,7 @@ StringID RealAllocateName(const byte *name, byte skip, bool check_double)
if (free_item == -1)
free_item = i;
} else {
- if (check_double && str_eq(names, name)) {
+ if (check_double && strcmp(names, name) == 0) {
_error_message = STR_0132_CHOSEN_NAME_IN_USE_ALREADY;
return 0;
}