From fb90b7018a2231dc6c1b37e4f45958e4a8c67e01 Mon Sep 17 00:00:00 2001 From: Heesup Yun Date: Thu, 14 Nov 2024 20:12:20 -0800 Subject: [PATCH] Helios/plugins/canopygenerator/src/CanopyGenerator.cpp:1188:21: warning: assigning field to itself [-Wself-assign-field] --- plugins/canopygenerator/src/CanopyGenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/canopygenerator/src/CanopyGenerator.cpp b/plugins/canopygenerator/src/CanopyGenerator.cpp index ec1ce0a35..aac8b2678 100644 --- a/plugins/canopygenerator/src/CanopyGenerator.cpp +++ b/plugins/canopygenerator/src/CanopyGenerator.cpp @@ -1185,7 +1185,7 @@ void StrawberryParameters::readParametersFromXML(const pugi::xml_node canopy_nod int2 new_plant_count = XMLloadint2(canopy_node, "plant_count"); if (new_plant_count.x != nullvalue_i && new_plant_count.y != nullvalue_i) { - plant_count = plant_count; + plant_count = new_plant_count; } }