Skip to content

Commit fdd3a91

Browse files
committed
Check the right value
1 parent f383390 commit fdd3a91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/ASDisplayNode+Layout.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,7 @@ - (void)_assertSubnodeState
934934
[sublayouts getObjects:cSublayouts range:NSMakeRange(0, AS_ARRAY_SIZE(cSublayouts))];
935935

936936
// Fast-path if we are in the correct state (likely).
937-
if (sublayouts.count == AS_ARRAY_SIZE(cSublayouts)) {
937+
if (_subnodes.count == AS_ARRAY_SIZE(cSublayouts)) {
938938
NSUInteger i = 0;
939939
BOOL matches = YES;
940940
for (ASDisplayNode *subnode in _subnodes) {

0 commit comments

Comments
 (0)