diff options
Diffstat (limited to 'src/script/api')
-rw-r--r-- | src/script/api/script_list.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/script/api/script_list.cpp b/src/script/api/script_list.cpp index 353d25d3e..68df5bf95 100644 --- a/src/script/api/script_list.cpp +++ b/src/script/api/script_list.cpp @@ -520,9 +520,7 @@ void ScriptList::Sort(SorterType sorter, bool ascending) } break; - default: - this->Sort(SORT_BY_ITEM, false); - return; + default: NOT_REACHED(); } this->sorter_type = sorter; this->sort_ascending = ascending; @@ -641,6 +639,7 @@ void ScriptList::RemoveBottom(int32 count) if (--size == 0) break; } } + break; case SORT_BY_ITEM: for (ScriptListMap::reverse_iterator iter = this->items.rbegin(); iter != this->items.rend(); iter = this->items.rbegin()) { |