added range check for checking sound and music loops
authorHolger Schemel <info@artsoft.org>
Wed, 29 Dec 2021 14:57:38 +0000 (15:57 +0100)
committerHolger Schemel <info@artsoft.org>
Sat, 22 Jan 2022 16:58:30 +0000 (17:58 +0100)
This fixes a bug when playing music on the music info screen that is
not configured in "musicinfo.conf", therefore getting a negative ID,
which caused an illegal array access when checking for music loop.

(The added range check takes into account that the default loop mode
for sounds is "false", but is "true" for music, if not specified.)


No differences found