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) {