From: Holger Schemel Date: Fri, 23 Feb 2024 18:05:31 +0000 (+0100) Subject: replaced glib function calls to g_str_equal() X-Git-Tag: 4.4.0.0-test-1~296 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=7bc86f03ad7324d5644e3b8a06a9ab53937f5ef0;p=rocksndiamonds.git replaced glib function calls to g_str_equal() --- diff --git a/src/game_bd/bd_cave.c b/src/game_bd/bd_cave.c index 1f757c86..537d8cb0 100644 --- a/src/game_bd/bd_cave.c +++ b/src/game_bd/bd_cave.c @@ -416,7 +416,7 @@ int gd_add_highscore(GdHighScore *highscores, const char *name, int score) qsort(highscores, GD_HIGHSCORE_NUM, sizeof(GdHighScore), gd_highscore_compare); for (i = 0; i < GD_HIGHSCORE_NUM; i++) - if (g_str_equal(highscores[i].name, name) && highscores[i].score == score) + if (strEqual(highscores[i].name, name) && highscores[i].score == score) return i; return -1;