Skip to content

Commit 92f624f

Browse files
committed
Fix bug with tree generation when dealing with null smart pointers.
1 parent 8416331 commit 92f624f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/entity/vref/pointer.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ namespace ent
121121

122122
static tree to_tree(T &item)
123123
{
124-
return item ? vref<typename T::element_type>::to_tree(*item) : tree {};
124+
return item ? vref<typename T::element_type>::to_tree(*item) : tree(nullptr);
125125
}
126126

127127

0 commit comments

Comments
 (0)