From 75fa19f4de54fc2791ba95ef6552d8c8b00f2d53 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 27 Dec 2014 02:12:14 +0200 Subject: [PATCH] Object's lod array must be initialized in all cases --- source/object.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/object.cpp b/source/object.cpp index 28389450..f043f614 100644 --- a/source/object.cpp +++ b/source/object.cpp @@ -21,7 +21,8 @@ Object::Object(): lods(1) { } -Object::Object(const Mesh *m, const Technique *t) +Object::Object(const Mesh *m, const Technique *t): + lods(1) { set_mesh(m); set_technique(t); -- 2.45.2