Commits

Braden Obrzut committed 9843e22

- More vgagraph correction code.

Comments (0)

Files changed (1)

src/resourcefiles/file_vgagraph.cpp

 						dimensions[j].height = ReadLittleShort(&out[(j*4)+2]);
 
 						// More correction due to bad vgagraphs
-						if(dimensions[j].width > 640 || dimensions[j].height > 480)
+						if(dimensions[j].width > 640 || dimensions[j].height > 480 ||
+							dimensions[j].width == 0 || dimensions[j].height == 0)
 							numPictures = j;
 					}
 					delete[] out;