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:
parent
55cd30ea3b
commit
67e32abd4f
@ -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]); }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user