mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-25 23:49:09 +00:00
(svn r1808) Use strcmp() instead of home brewed function str_eq()
This commit is contained in:
2
misc.c
2
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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user