Merge pull request #2299 from janisozaur/g2

Zero the buffer for g2.dat
This commit is contained in:
Duncan 2015-11-13 18:40:00 +00:00
commit 65a3dd710a
1 changed files with 1 additions and 0 deletions

View File

@ -260,6 +260,7 @@ bool sprite_file_import(const char *path, rct_g1_element *outElement, uint8 **ou
}
uint8 *buffer = malloc((height * 2) + (width * height * 16));
memset(buffer, 0, (height * 2) + (width * height * 16));
uint16 *yOffsets = (uint16*)buffer;
// A larger range is needed for proper dithering