1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-18 12:33:17 +01:00

Fix missed -1 pointer comparisons

This commit is contained in:
Michael Steenbeek
2017-10-17 17:05:57 +02:00
parent 60aa849a83
commit 08929b8b19

View File

@@ -3351,7 +3351,7 @@ sint32 map_can_construct_with_clear_at(sint32 x, sint32 y, sint32 zLow, sint32 z
continue;
}
}
if (map_element != (rct_map_element*)0xFFFFFFF) {
if (map_element != NULL) {
map_obstruction_set_error_text(map_element);
}
return false;
@@ -3361,7 +3361,7 @@ sint32 map_can_construct_with_clear_at(sint32 x, sint32 y, sint32 zLow, sint32 z
goto loc_68B9B7;
}
}
if (map_element != (rct_map_element*)0xFFFFFFF) {
if (map_element != NULL) {
gGameCommandErrorText = STR_CANNOT_BUILD_PARTLY_ABOVE_AND_PARTLY_BELOW_WATER;
}
return false;