From 5c2f9dffe619bfa1f104ead6adb8552e03ea8725 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Mon, 5 Jun 2023 20:35:31 +0100 Subject: [PATCH] Fix compilation error in newgrf_profile console command on some platforms --- src/console_cmds.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp index f3e2c2f7c3..29a17acdda 100644 --- a/src/console_cmds.cpp +++ b/src/console_cmds.cpp @@ -3363,7 +3363,7 @@ DEF_CONSOLE_CMD(ConNewGRFProfile) const std::vector &files = GetAllGRFFiles(); /* "list" sub-command */ - if (argc == 1 || strncasecmp(argv[1], "lis", 3) == 0) { + if (argc == 1 || StrStartsWithIgnoreCase(argv[1], "lis")) { IConsolePrint(CC_INFO, "Loaded GRF files:"); int i = 1; for (GRFFile *grf : files) {