From: Simon Tatham Date: Sat, 3 Oct 2015 16:39:22 +0000 (+0100) Subject: build fix X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=e22a9c8396f1f0bd1c74cd8b738f5f9716760004;p=sgt-puzzles.git build fix --- diff --git a/pearl.c b/pearl.c index 977577f..20ba3d4 100644 --- a/pearl.c +++ b/pearl.c @@ -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))