diff --git a/plugins/topology.c b/plugins/topology.c index 0d8851319..e0807da3d 100644 --- a/plugins/topology.c +++ b/plugins/topology.c @@ -557,9 +557,9 @@ static struct amount_msat peer_capacity(const struct gossmap *gossmap, continue; if (!c->half[!dir].enabled) continue; - if (!amount_msat_add(&capacity, capacity, - amount_msat(fp16_to_u64(c->half[dir] - .htlc_max)))) + if (!amount_msat_add( + &capacity, capacity, + amount_msat(fp16_to_u64(c->half[!dir].htlc_max)))) continue; } return capacity;