Skip to content

Commit ef9ee5c

Browse files
committed
fix gcc syntax warning
1 parent 5ced710 commit ef9ee5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/plant.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,8 @@ command_result df_createplant(color_ostream &out, const df::coord &pos, const pl
244244
bool is_watery = tile_watery(pos);
245245
if (!options.force)
246246
{ // Check if plant compatible with wet/dry
247-
if (is_watery && !p_raw->flags.is_set(plant_raw_flags::WET) ||
248-
!is_watery && !p_raw->flags.is_set(plant_raw_flags::DRY))
247+
if ((is_watery && !p_raw->flags.is_set(plant_raw_flags::WET)) ||
248+
(!is_watery && !p_raw->flags.is_set(plant_raw_flags::DRY)))
249249
{
250250
out.printerr("Can't create plant: Plant type can't grow this %s water feature!\n"
251251
"Override with --force\n", is_watery ? "close to" : "far from");

0 commit comments

Comments
 (0)