Website Summary Files Commits Branches @commit @diff @stats
path: root / src / EventSystem / Ticket.cpp
diff options
context:
space:
mode:
1 files changed, 2 insertions, 2 deletions
-rw-r--r--src/EventSystem/Ticket.cpp4
diff --git a/src/EventSystem/Ticket.cpp b/src/EventSystem/Ticket.cpp
index 997045e..0929144 100644
--- a/src/EventSystem/Ticket.cpp
+++ b/src/EventSystem/Ticket.cpp
@@ -27,8 +27,8 @@ void Ticket::write(std::ostream& ostr) const {
int Ticket::compare(const Ticket& other) const {
if (row == other.row)
- return (seat > other.seat) - (other.seat < seat);
- return (row > other.row) - (other.row < row);
+ return seat - other.seat;
+ return row - other.row;
}
/* General */