]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Objects/Object.cpp
Fix a few GCC5 and GCC6 warnings
[lugaru.git] / Source / Objects / Object.cpp
index 081f23de9686df7fea95b21a5c034f41948c0b2c..a2fcc9eb27f6a07a910e99e7d1424c3f6bbe583d 100644 (file)
@@ -556,7 +556,8 @@ void Object::LoadObjectsFromFile(FILE* tfile, bool skip)
     int numobjects;
     int type;
     XYZ position;
-    float yaw, pitch, scale, lastscale;
+    float yaw, pitch, scale;
+    float lastscale = 1.0f;
     funpackf(tfile, "Bi", &numobjects);
     if (!skip) {
         objects.clear();