fixed potential crash bug (accessing invalid memory)
authorHolger Schemel <info@artsoft.org>
Mon, 7 Jan 2019 15:42:30 +0000 (16:42 +0100)
committerHolger Schemel <info@artsoft.org>
Mon, 7 Jan 2019 15:42:30 +0000 (16:42 +0100)
This change fixes a bug that occured when invoking the changed
function with a "graphic" parameter indicating undefined graphic,
which is defined as "-1" and caused an "array out of bounds" access.

To fix this bug, the function parameter is checked before used.


No differences found