changeset 9223:0b8bbdd54e9a draft

(svn r13089) -Fix (r13072): MorphOS compilation was broken
author smatz <smatz@openttd.org>
date Wed, 14 May 2008 18:27:39 +0000
parents 6ad7fc7fbcaf
children c8a0fa0e208a
files src/engine.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/engine.cpp
+++ b/src/engine.cpp
@@ -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>)