From: Holger Schemel Date: Sat, 30 Oct 2021 12:16:43 +0000 (+0200) Subject: fixed out-of-bounds bug when score was not added to high score list X-Git-Tag: 4.3.0.0~7 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;ds=inline;h=42706644f944aae5213d9f605010537748aecf6b;hp=42706644f944aae5213d9f605010537748aecf6b;p=rocksndiamonds.git fixed out-of-bounds bug when score was not added to high score list If the score is not added to the local high score list for a solved level (because the high score table is completely full, and the new score is not better than the lowest score entry in the list), there was an out-of-bounds bug caused (by accessing the score array at position "-1", which was not correctly handled as "no score entry"). This uncaught error condition could have caused various misbehavior (inclusing crashes) of the game. This change fixes this bug. ---