mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-10 19:01:50 +00:00
Crash prevention
This commit is contained in:
parent
6a7454acf7
commit
f91e8e126e
1 changed files with 1 additions and 1 deletions
|
|
@ -2744,7 +2744,7 @@ static png_bytep *PNG_Read(UINT8 *png, UINT16 *w, UINT16 *h, INT16 *topoffset, I
|
||||||
png_read_image(png_ptr, row_pointers);
|
png_read_image(png_ptr, row_pointers);
|
||||||
|
|
||||||
// Read grAB chunk
|
// Read grAB chunk
|
||||||
if (topoffset || leftoffset)
|
if ((topoffset || leftoffset) && (chunk.data != NULL))
|
||||||
{
|
{
|
||||||
INT32 *offsets = (INT32 *)chunk.data;
|
INT32 *offsets = (INT32 *)chunk.data;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue