From 8ab7f8493a3de6dc3657724e183a2375f928840b Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Fri, 15 Jul 2022 16:58:58 +0300 Subject: [PATCH] Fix kills folder Closes #76 --- src/character_editor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/character_editor.cc b/src/character_editor.cc index 5b8a04b..8a9c187 100644 --- a/src/character_editor.cc +++ b/src/character_editor.cc @@ -2193,7 +2193,7 @@ static int characterEditorDrawKillsFolder() } if (usedKills != 0) { - qsort(kills, usedKills, 12, characterEditorKillsCompare); + qsort(kills, usedKills, sizeof(*kills), characterEditorKillsCompare); for (i = 0; i < usedKills; i++) { KillInfo* killInfo = &(kills[i]);