X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_sp%2FDDSpriteBuffer.c;h=e4be416487fe8259ee05cf3dce921be901028c6b;hb=855700d73bbef8bb1248fe0ac735738478d6044b;hp=261459adbd04ee65f594eeee4448b4c5ded80412;hpb=8e3612567b52232c0f1dff593546cb90b396911c;p=rocksndiamonds.git diff --git a/src/game_sp/DDSpriteBuffer.c b/src/game_sp/DDSpriteBuffer.c index 261459ad..e4be4164 100644 --- a/src/game_sp/DDSpriteBuffer.c +++ b/src/game_sp/DDSpriteBuffer.c @@ -37,6 +37,9 @@ void DDSpriteBuffer_BltImg(int pX, int pY, int graphic, int sync_frame) if (NoDisplayFlag) return; + if (graphic < 0) + return; + getGraphicSource_SP(&g, graphic, sync_frame, -1, -1); Blt(pX, pY, g.bitmap, g.src_x, g.src_y);