For example:
Code: Select all
struct unit
{
irr::f32 value;
EPantheon_Units units;
};
typedef irr::core::vector2d<unit> vector2dunit;
This is what is on line 25:
Code: Select all
//! Default constructor (null vector)
vector2d() : X(0), Y(0) {}
The following will fix the problem.
Code: Select all
//! Default constructor (null vector)
vector2d() : X(T()), Y(T()) {}
I also applied the same patch for dimension2d.h (Line 24)
Code: Select all
//! Default constructor for empty dimension
dimension2d() : Width(T()), Height(T()) {}