mirror of https://github.com/OpenRCT2/OpenRCT2.git
fix #3352: assertion trigger while fixing tiles
Remove assertion and add warning message instead.
This commit is contained in:
parent
9fd6c9df5f
commit
3405fd5bad
|
@ -813,7 +813,10 @@ void game_fix_save_vars() {
|
|||
{
|
||||
log_error("Null map element at x = %d and y = %d. Fixing...", x, y);
|
||||
mapElement = map_element_insert(x, y, 14, 0);
|
||||
assert(mapElement != NULL);
|
||||
if (mapElement == NULL) {
|
||||
log_error("Unable to fix: Map element limit reached.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue