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]);