Add default initialization to ESM::Position members

macos_ci
elsid 2 years ago
parent 55cd30ea3b
commit 67e32abd4f
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

@ -42,10 +42,10 @@ namespace ESM
// Position and rotation // Position and rotation
struct Position struct Position
{ {
float pos[3]; float pos[3]{};
// In radians // In radians
float rot[3]; float rot[3]{};
osg::Vec3f asVec3() const { return osg::Vec3f(pos[0], pos[1], pos[2]); } osg::Vec3f asVec3() const { return osg::Vec3f(pos[0], pos[1], pos[2]); }

Loading…
Cancel
Save