diff options
author | smatz <smatz@openttd.org> | 2008-05-14 18:27:39 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-05-14 18:27:39 +0000 |
commit | c90cda6c1c806d4f657faa07b29a85e4e44f8d4b (patch) | |
tree | d86ee944f3b472e56f33a08eacb3ed971294c360 /src | |
parent | 9b8d16b7ff71d2599f91835332a9903fc2ba4bba (diff) | |
download | openttd-c90cda6c1c806d4f657faa07b29a85e4e44f8d4b.tar.xz |
(svn r13089) -Fix (r13072): MorphOS compilation was broken
Diffstat (limited to 'src')
-rw-r--r-- | src/engine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 @ <begin, begin+num_items-1>) |