mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-22 08:25:45 -07:00
Memory management and other fixes from James H.
[originally from svn r8596]
This commit is contained in:
@ -365,7 +365,7 @@ static char *game_text_format(game_state *state)
|
||||
case s_tile:
|
||||
if (sp->flags & F_TILE_ASSOC) {
|
||||
space *dot = sp2dot(state, sp->x, sp->y);
|
||||
if (dot->flags & F_DOT)
|
||||
if (dot && dot->flags & F_DOT)
|
||||
*p++ = (dot->flags & F_DOT_BLACK) ? 'B' : 'W';
|
||||
else
|
||||
*p++ = '?'; /* association with not-a-dot. */
|
||||
@ -1450,6 +1450,7 @@ generate:
|
||||
state = copy2;
|
||||
}
|
||||
}
|
||||
sfree(posns);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user