Cleanup: Fix warning in release builds

This commit is contained in:
Sergey Sharybin 2022-08-10 11:02:19 +02:00
parent f12f7800c2
commit 54c26f58d0
1 changed files with 1 additions and 2 deletions

View File

@ -371,8 +371,7 @@ void OverrideRNAPathTreeBuilder::ensure_entire_collection(
const char *coll_prop_path,
short &index)
{
AbstractTreeElement *abstract_parent = tree_element_cast<AbstractTreeElement>(&te_to_expand);
BLI_assert(abstract_parent != nullptr);
BLI_assert(tree_element_cast<AbstractTreeElement>(&te_to_expand) != nullptr);
TreeElement *previous_te = nullptr;
int item_idx = 0;