diff --git a/src/openrct2-win/openrct2-win.cpp b/src/openrct2-win/openrct2-win.cpp index 166d875b9d..482d00f164 100644 --- a/src/openrct2-win/openrct2-win.cpp +++ b/src/openrct2-win/openrct2-win.cpp @@ -48,7 +48,7 @@ int wmain(int argc, wchar_t** argvW, [[maybe_unused]] wchar_t* envp) static char** GetCommandLineArgs(int argc, wchar_t** argvW) { // Allocate UTF-8 strings - auto argv = (char**)malloc(argc * sizeof(char*)); + auto argv = static_cast(malloc(argc * sizeof(char*))); if (argv != nullptr) { // Convert to UTF-8