aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code
diff options
context:
space:
mode:
Diffstat (limited to 'Game/Code')
-rw-r--r--Game/Code/Classes/USongs.pas3
1 files changed, 3 insertions, 0 deletions
diff --git a/Game/Code/Classes/USongs.pas b/Game/Code/Classes/USongs.pas
index fb423ff7..8de78777 100644
--- a/Game/Code/Classes/USongs.pas
+++ b/Game/Code/Classes/USongs.pas
@@ -358,6 +358,9 @@ begin
CompareFunc := CompareByArtist;
sLanguage: // by Language
CompareFunc := CompareByLanguage;
+ else
+ Log.LogCritical('Unsupported comparison', 'TSongs.Sort');
+ Exit; // suppress warning
end; // case
// Note: Do not use TList.Sort() as it uses QuickSort which is instable.