Skip to content

Commit

Permalink
Fix invalid state verification in SBoneShape::Valid (copy-pasted bug).
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Kovalenko committed Oct 8, 2014
1 parent f3362eb commit 0f8835f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xrEngine/bone.h
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ struct ECORE_API SBoneShape
}
bool Valid(){
switch (type){
case stBox: return !fis_zero(box.m_halfsize.x)&&!fis_zero(box.m_halfsize.x)&&!fis_zero(box.m_halfsize.x);
case stBox: return !fis_zero(box.m_halfsize.x)&&!fis_zero(box.m_halfsize.y)&&!fis_zero(box.m_halfsize.z);
case stSphere: return !fis_zero(sphere.R);
case stCylinder:return !fis_zero(cylinder.m_height)&&!fis_zero(cylinder.m_radius)&&!fis_zero(cylinder.m_direction.square_magnitude());
};
Expand Down

0 comments on commit 0f8835f

Please sign in to comment.