Skip to content

Commit 8b67bb5

Browse files
author
Pavel Kovalenko
committed
Add missing check in function for validating _cylinder instance.
1 parent 6f0cac6 commit 8b67bb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/xrCore/_cylinder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,6 @@ typedef _cylinder<float> Fcylinder;
218218
typedef _cylinder<double> Dcylinder;
219219

220220
template <class T>
221-
BOOL _valid (const _cylinder<T>& c) { return _valid(c.m_center) && _valid(c.m_direction) && _valid(c.m_height) && _valid(c.m_height); }
221+
BOOL _valid (const _cylinder<T>& c) { return _valid(c.m_center) && _valid(c.m_direction) && _valid(c.m_height) && _valid(c.m_radius); }
222222

223223
#endif // _DEBUG

0 commit comments

Comments
 (0)