From 56f15b3544089c3d690644b0b4f6e88c65710d83 Mon Sep 17 00:00:00 2001 From: smatz Date: Wed, 14 May 2008 18:27:39 +0000 Subject: (svn r13089) -Fix (r13072): MorphOS compilation was broken --- src/engine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/engine.cpp') diff --git a/src/engine.cpp b/src/engine.cpp index 4a548b967..0827a74df 100644 --- a/src/engine.cpp +++ b/src/engine.cpp @@ -125,7 +125,7 @@ void EngList_Sort(EngineList *el, EngList_SortTypeFunction compare) /* out-of-bounds access at the next line for size == 0 (even with operator[] at some systems) * generally, do not sort if there are less than 2 items */ if (size < 2) return; - qsort(&(el->at(0)), size, sizeof(EngineID), compare); + qsort(&((*el)[0]), size, sizeof(EngineID), compare); // MorphOS doesn't know vector::at(int) ... } /** Sort selected range of items (on indices @ ) -- cgit v1.2.3-54-g00ecf