summaryrefslogtreecommitdiff
path: root/SA_POP_Types.h
diff options
context:
space:
mode:
Diffstat (limited to 'SA_POP_Types.h')
-rw-r--r--SA_POP_Types.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/SA_POP_Types.h b/SA_POP_Types.h
index 3bb2ab35f77..ca25b37aac8 100644
--- a/SA_POP_Types.h
+++ b/SA_POP_Types.h
@@ -181,13 +181,13 @@ namespace SA_POP {
TaskInstID last_instance;
void note_instance(TaskInstID instance){
- if (last_instance > instance){
+ if (last_instance < instance){
this->last_instance = instance;
}
}
bool operator<(const SortTaskByTime & s) {
- return this->last_instance < s.last_instance;
+ return this->last_instance > s.last_instance;
}
bool operator!=(const SortTaskByTime & s) {
return this->last_instance != s.last_instance;