Changeset - r9404:f74e13f5c66e
[Not reviewed]
master
0 1 0
peter1138 - 16 years ago 2008-05-28 20:06:00
peter1138@openttd.org
(svn r13315) -Fix (r13314): Assert if no engines or wagons available
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/engine_gui.cpp
Show inline comments
 
@@ -214,9 +214,9 @@ void EngList_Sort(GUIEngineList *el, Eng
 
 */
 
void EngList_SortPartial(GUIEngineList *el, EngList_SortTypeFunction compare, uint begin, uint num_items)
 
{
 
	if (num_items < 2) return;
 
	assert(begin < el->Length());
 
	assert(begin + num_items <= el->Length());
 
	if (num_items < 2) return;
 
	qsort(el->Get(begin), num_items, sizeof(*el->Begin()), compare);
 
}
 

	
0 comments (0 inline, 0 general)