Fix compilation error in newgrf_profile console command on some platforms

pull/532/head
Jonathan G Rennison 1 year ago
parent b505805bfe
commit 5c2f9dffe6

@ -3363,7 +3363,7 @@ DEF_CONSOLE_CMD(ConNewGRFProfile)
const std::vector<GRFFile *> &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) {

Loading…
Cancel
Save