added check to prevent crash when drawing sprites for undefined graphics
authorHolger Schemel <info@artsoft.org>
Tue, 17 Apr 2018 17:49:13 +0000 (19:49 +0200)
committerHolger Schemel <info@artsoft.org>
Tue, 17 Apr 2018 17:49:13 +0000 (19:49 +0200)
commitc30edbbd22c95dc165311601b15d5370e134fbf8
treeb555b6f0813220ee2a458de31e4e2d0d39e5e29d
parent3e10387c490e2db8997d6e909d7d13d71fe876e3
added check to prevent crash when drawing sprites for undefined graphics

Due to a bug (that will be fixed with the following commit) it may
be possible that game elements are drawn for undefined graphics ID,
resulting in a crash.

A check was added to prevent drawing sprites for undefined graphics.
src/game_sp/DDSpriteBuffer.c