From 6d55a29b3433787fb851f9111fb7b79e574d2896 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 5 May 2022 21:14:07 +0300 Subject: Autocommit at 05.05.2022 @ 21:14 --- src/EventSystem/Ticket.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/EventSystem/Ticket.cpp') diff --git a/src/EventSystem/Ticket.cpp b/src/EventSystem/Ticket.cpp index 0929144..e37cccf 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; - return row - other.row; + return (seat > other.seat) - (seat < other.seat); + return (row > other.row) - (row < other.row); } /* General */ -- cgit v1.3.1-23-gd82d