diff options
| author | Simon Tatham <anakin@pobox.com> | 2015-10-03 17:39:22 +0100 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2015-10-03 17:39:22 +0100 |
| commit | e22a9c8396f1f0bd1c74cd8b738f5f9716760004 (patch) | |
| tree | 58818d0cdaea147646efe576ceba46196b7fc4b4 /pearl.c | |
| parent | 581becc3aa657fe4b7694c6f261d3193d51928d2 (diff) | |
| download | puzzles-e22a9c8396f1f0bd1c74cd8b738f5f9716760004.zip puzzles-e22a9c8396f1f0bd1c74cd8b738f5f9716760004.tar.gz puzzles-e22a9c8396f1f0bd1c74cd8b738f5f9716760004.tar.bz2 puzzles-e22a9c8396f1f0bd1c74cd8b738f5f9716760004.tar.xz | |
build fix
Diffstat (limited to 'pearl.c')
| -rw-r--r-- | pearl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1737,7 +1737,7 @@ static char *game_text_format(const game_state *state) for (r = 0; r < h; ++r) { for (c = 0; c < w; ++c) { int i = r*w + c, cell = r*ch*gw + c*cw; - board[cell] = state->shared->clues[i]["+BW"]; + board[cell] = "+BW"[(unsigned char)state->shared->clues[i]]; if (c < w - 1 && (state->lines[i] & R || state->lines[i+1] & L)) memset(board + cell + 1, '-', cw - 1); if (r < h - 1 && (state->lines[i] & D || state->lines[i+w] & U)) |