mirror of
https://github.com/StewBC/cc65-Chess.git
synced 2025-03-11 19:29:45 +00:00
Avoid undefined memory read access.
This commit is contained in:
parent
15e8557f64
commit
8c881e847e
@ -218,7 +218,11 @@ void plat_DrawSquare(char position)
|
||||
inv = blackWhite ^ (piece & PIECE_WHITE) != 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
rop = blackWhite ? ROP_WHITE : ROP_BLACK;
|
||||
inv = 0;
|
||||
piece = 1;
|
||||
}
|
||||
|
||||
hires_Draw(2+x*BOARD_PIECE_WIDTH,14+y*BOARD_PIECE_HEIGHT,
|
||||
BOARD_PIECE_WIDTH,BOARD_PIECE_HEIGHT,rop,
|
||||
|
Loading…
x
Reference in New Issue
Block a user