mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +01:00
Fix two more warnings
This commit is contained in:
@@ -938,7 +938,7 @@ console_command console_command_table[] = {
|
||||
{ "object_count", cc_object_count, "Shows the number of objects of each type in the scenario.", "object_count" },
|
||||
{ "twitch", cc_twitch, "Twitch API" },
|
||||
{ "reset_user_strings", cc_reset_user_strings, "Resets all user-defined strings, to fix incorrectly occurring 'Chosen name in use already' errors.", "reset_user_strings" },
|
||||
{ "fix_banner_count", cc_fix_banner_count, "Fixes incorrectly appearing 'Too many banners' error by marking every banner entry without a map element as null..", "fix_banner_count" }
|
||||
{ "fix_banner_count", cc_fix_banner_count, "Fixes incorrectly appearing 'Too many banners' error by marking every banner entry without a map element as null.", "fix_banner_count" }
|
||||
};
|
||||
|
||||
static int cc_windows(const utf8 **argv, int argc) {
|
||||
@@ -1038,7 +1038,7 @@ void console_execute_silent(const utf8 *src)
|
||||
bool validCommand = false;
|
||||
for (int i = 0; i < countof(console_command_table); i++) {
|
||||
if (strcmp(argv[0], console_command_table[i].command) == 0) {
|
||||
console_command_table[i].func(argv + 1, argc - 1);
|
||||
console_command_table[i].func((const utf8 **)(argv + 1), argc - 1);
|
||||
validCommand = true;
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -299,7 +299,7 @@ int screenshot_dump_png()
|
||||
}
|
||||
|
||||
free(png);
|
||||
if (pixels != dpi->bits) {
|
||||
if ((utf8*)pixels != (utf8*)dpi->bits) {
|
||||
free(pixels);
|
||||
}
|
||||
return index;
|
||||
@@ -567,4 +567,4 @@ int cmdline_for_screenshot(const char **argv, int argc)
|
||||
}
|
||||
openrct2_dispose();
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user