From fdd3a9125b05bc75e21d896df01c77e72f9a60a5 Mon Sep 17 00:00:00 2001 From: Adlai Holler Date: Sun, 3 Mar 2019 12:51:37 -0600 Subject: [PATCH] Check the right value --- Source/ASDisplayNode+Layout.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/ASDisplayNode+Layout.mm b/Source/ASDisplayNode+Layout.mm index 3a78785ed..0d45c4140 100644 --- a/Source/ASDisplayNode+Layout.mm +++ b/Source/ASDisplayNode+Layout.mm @@ -934,7 +934,7 @@ - (void)_assertSubnodeState [sublayouts getObjects:cSublayouts range:NSMakeRange(0, AS_ARRAY_SIZE(cSublayouts))]; // Fast-path if we are in the correct state (likely). - if (sublayouts.count == AS_ARRAY_SIZE(cSublayouts)) { + if (_subnodes.count == AS_ARRAY_SIZE(cSublayouts)) { NSUInteger i = 0; BOOL matches = YES; for (ASDisplayNode *subnode in _subnodes) {