1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-14 01:19:59 +00:00

Add default initialization to ESM::Position members

This commit is contained in:
elsid 2023-06-04 01:12:03 +02:00
parent 55cd30ea3b
commit 67e32abd4f
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

View File

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