Skip to content

Commit 0f8835f

Browse files
author
Pavel Kovalenko
committed
Fix invalid state verification in SBoneShape::Valid (copy-pasted bug).
1 parent f3362eb commit 0f8835f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/xrEngine/bone.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ struct ECORE_API SBoneShape
193193
}
194194
bool Valid(){
195195
switch (type){
196-
case stBox: return !fis_zero(box.m_halfsize.x)&&!fis_zero(box.m_halfsize.x)&&!fis_zero(box.m_halfsize.x);
196+
case stBox: return !fis_zero(box.m_halfsize.x)&&!fis_zero(box.m_halfsize.y)&&!fis_zero(box.m_halfsize.z);
197197
case stSphere: return !fis_zero(sphere.R);
198198
case stCylinder:return !fis_zero(cylinder.m_height)&&!fis_zero(cylinder.m_radius)&&!fis_zero(cylinder.m_direction.square_magnitude());
199199
};

0 commit comments

Comments
 (0)