]> git.tdb.fi Git - libs/gl.git/commitdiff
Object's lod array must be initialized in all cases
authorMikko Rasa <tdb@tdb.fi>
Sat, 27 Dec 2014 00:12:14 +0000 (02:12 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sat, 27 Dec 2014 00:12:14 +0000 (02:12 +0200)
source/object.cpp

index 283894501e29a0aec9b3694d47b9730154d56c60..f043f614ac84f80e549381b003b3202f8231c02f 100644 (file)
@@ -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);