diff options
Autocommit at 05.05.2022 @ 21:04
1 files changed, 1 insertions, 1 deletions
| -rw-r--r-- | src/EventSystem/Event.cpp | 2 |
diff --git a/src/EventSystem/Event.cpp b/src/EventSystem/Event.cpp index 8d01fbe..f6c63a1 100644 --- a/src/EventSystem/Event.cpp +++ b/src/EventSystem/Event.cpp @@ -55,7 +55,7 @@ StatusCode Event::buyTicketFromReservation(const Reservation& reservation, const unsigned resInd = reservations.findIndex(reservation); if (resInd == reservations.get_count()) return E_ReservationDoesNotExist; - if (!reservation.validPassword(password)) return E_WrongReservationPassword; + if (!reservations[resInd].validPassword(password)) return E_WrongReservationPassword; reservations.removeAt(resInd); tickets.insert(reservation.get_ticket()); |
