- fix for missing include dir in MSVC 7 project files
[blender-staging.git] / source / blender / blenloader / intern / writefile.c
index 925233b4d77ec3c4dbfd4dc8bd4768940b19037c..ee914954b90a584e3b01a346c13b215c1d2af34e 100644 (file)
@@ -1226,7 +1226,7 @@ static void write_images(WriteData *wd, ListBase *idbase)
 {
        Image *ima;
        PackedFile * pf;
-       PreviewImage *prv;
+
 
        ima= idbase->first;
        while(ima) {
@@ -1242,7 +1242,7 @@ static void write_images(WriteData *wd, ListBase *idbase)
                        }
 
                        if (ima->preview) {
-                               prv = ima->preview;
+                               PreviewImage *prv = ima->preview;
                                writestruct(wd, DATA, "PreviewImage", 1, prv);
                                writedata(wd, DATA, prv->w*prv->h*sizeof(unsigned int), prv->rect);
                        }