Skip to content

Commit

Permalink
Fix broken assertion.
Browse files Browse the repository at this point in the history
Broken since commit d29971d5.
  • Loading branch information
skullernet authored and res2k committed Feb 18, 2024
1 parent 5c5ec4d commit 3ae7ae0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/cmodel.c
Original file line number Diff line number Diff line change
Expand Up @@ -1114,7 +1114,7 @@ byte *CM_FatPVS(cm_t *cm, byte *mask, const vec3_t org, int vis)
}

count = CM_BoxLeafs(cm, mins, maxs, leafs, q_countof(leafs), NULL);
Q_assert(count > 0 && count < q_countof(leafs));
Q_assert(count > 0 && count <= q_countof(leafs));

// convert leafs to clusters
for (i = 0; i < count; i++) {
Expand Down

0 comments on commit 3ae7ae0

Please sign in to comment.