summaryrefslogtreecommitdiff
path: root/src/story_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/story_gui.cpp')
-rw-r--r--src/story_gui.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/story_gui.cpp b/src/story_gui.cpp
index 944e7bd50..5ce77cc63 100644
--- a/src/story_gui.cpp
+++ b/src/story_gui.cpp
@@ -69,9 +69,9 @@ protected:
}
/** Sort story pages by order value. */
- static int CDECL PageOrderSorter(const StoryPage * const *a, const StoryPage * const *b)
+ static bool PageOrderSorter(const StoryPage * const &a, const StoryPage * const &b)
{
- return (*a)->sort_value - (*b)->sort_value;
+ return a->sort_value < b->sort_value;
}
/** (Re)Build story page element list. */
@@ -98,9 +98,9 @@ protected:
}
/** Sort story page elements by order value. */
- static int CDECL PageElementOrderSorter(const StoryPageElement * const *a, const StoryPageElement * const *b)
+ static bool PageElementOrderSorter(const StoryPageElement * const &a, const StoryPageElement * const &b)
{
- return (*a)->sort_value - (*b)->sort_value;
+ return a->sort_value < b->sort_value;
}
/*