X-Git-Url: https://git.jsancho.org/?p=lugaru.git;a=blobdiff_plain;f=Source%2FObjects%2FObject.cpp;h=a2fcc9eb27f6a07a910e99e7d1424c3f6bbe583d;hp=081f23de9686df7fea95b21a5c034f41948c0b2c;hb=4da2d867e24687b29e1f812980664ee1493ad416;hpb=9ab405b6543dfd6ea0eef8e5e80d76ffa9d4dd04 diff --git a/Source/Objects/Object.cpp b/Source/Objects/Object.cpp index 081f23d..a2fcc9e 100644 --- a/Source/Objects/Object.cpp +++ b/Source/Objects/Object.cpp @@ -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();