(svn r13089) -Fix (r13072): MorphOS compilation was broken
authorsmatz
Wed, 14 May 2008 18:27:39 +0000
changeset 9223 2e4d5d55bdf0
parent 9222 78f27b94fe76
child 9224 93528d9cb96d
(svn r13089) -Fix (r13072): MorphOS compilation was broken
src/engine.cpp
--- a/src/engine.cpp	Wed May 14 16:38:53 2008 +0000
+++ b/src/engine.cpp	Wed May 14 18:27:39 2008 +0000
@@ -125,7 +125,7 @@
 	/* 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 @ <begin, begin+num_items-1>)