mirror of
https://github.com/OpenRCT2/OpenRCT2.git
synced 2025-01-22 18:31:59 -05:00
Don't crash if path to RCT2 is NULL
This can happen when `game_path` entry gets removed from `config.ini`
This commit is contained in:
parent
404fceaed9
commit
cb1911280a
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ sint32 rct2_init_directories()
|
|||
|
||||
if (str_is_null_or_empty(gCustomRCT2DataPath)) {
|
||||
// check install directory
|
||||
if (!platform_original_game_data_exists(gConfigGeneral.rct2_path)) {
|
||||
if (gConfigGeneral.rct2_path == NULL || !platform_original_game_data_exists(gConfigGeneral.rct2_path)) {
|
||||
log_verbose("install directory does not exist or invalid directory selected, %s", gConfigGeneral.rct2_path);
|
||||
if (!config_find_or_browse_install_directory()) {
|
||||
utf8 path[MAX_PATH];
|
||||
|
|
Loading…
Reference in a new issue