Skip to content
Snippets Groups Projects
Commit 2e4c5d14 authored by katsy's avatar katsy
Browse files

alternate fix to #555 which doesn't crash the game

parent e8c83f48
No related branches found
No related tags found
No related merge requests found
......@@ -227,10 +227,10 @@ void RotatedPatch_DoRotation(rotsprite_t *rotsprite, patch_t *patch, INT32 angle
ox = (newwidth / 2) + (leftoffset - xpivot);
oy = (newheight / 2) + (patch->topoffset - ypivot);
width = (maxx+1 - minx);
height = (maxy+1 - miny);
width = (maxx - minx);
height = (maxy - miny);
if ((unsigned)(width * height) != size)
if ((unsigned)(width * height) > size)
{
UINT16 *src, *dest;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment