# HG changeset patch # User Santeri Piippo # Date 1386887476 -7200 # Node ID 5bf1f8dd901d29c7e6bda616bc829c9b12150d1c # Parent 2478a6b3106dcd8b498fba0a2707154a147e52be - fixed: LDMatrixObject's position would be an invalid pointer if it was created with the default constructor, causing a crash diff -r 2478a6b3106d -r 5bf1f8dd901d src/ldtypes.h --- a/src/ldtypes.h Fri Dec 13 00:28:24 2013 +0200 +++ b/src/ldtypes.h Fri Dec 13 00:31:16 2013 +0200 @@ -184,7 +184,9 @@ PROPERTY (public, matrix, Transform, NO_OPS, CUSTOM_WRITE) public: - LDMatrixObject() {} + LDMatrixObject() : + m_Position (LDSharedVertex::getSharedVertex ({0, 0, 0})) {} + LDMatrixObject (const matrix& transform, const vertex& pos) : m_Transform (transform), m_Position (LDSharedVertex::getSharedVertex (pos)) {}