From 7bc86f03ad7324d5644e3b8a06a9ab53937f5ef0 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Fri, 23 Feb 2024 19:05:31 +0100 Subject: [PATCH] replaced glib function calls to g_str_equal() --- src/game_bd/bd_cave.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.34.1