diff --git a/src/property.cpp b/src/property.cpp index 8f73b11a..95d11b5c 100644 --- a/src/property.cpp +++ b/src/property.cpp @@ -277,7 +277,7 @@ bool remove_gds_property(Property*& properties, uint16_t attribute) { } Property* property = properties; while (property->next && - (!is_gds_property(property->next) || property->value->unsigned_integer != attribute)) + (!is_gds_property(property->next) || property->next->value->unsigned_integer != attribute)) property = property->next; if (property->next) { Property* rem = property->next;