mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
Greg Hewgill points out a code path on which the angle parameter to
the Penrose grid generation function can fail to be initialised. [originally from svn r9798]
This commit is contained in:
2
grid.c
2
grid.c
@ -2635,7 +2635,7 @@ static grid *grid_new_penrose(int width, int height, int which, char *desc)
|
|||||||
if (sscanf(desc, "G%d,%d,%d", &xoff, &yoff, &aoff) != 3)
|
if (sscanf(desc, "G%d,%d,%d", &xoff, &yoff, &aoff) != 3)
|
||||||
assert(!"Invalid grid description.");
|
assert(!"Invalid grid description.");
|
||||||
} else {
|
} else {
|
||||||
xoff = yoff = 0;
|
xoff = yoff = aoff = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
xsz = width * tilesize;
|
xsz = width * tilesize;
|
||||||
|
Reference in New Issue
Block a user