diff options
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 1452057..450eca9 100644 --- a/src/EventSystem/Event.cpp +++ b/src/EventSystem/Event.cpp @@ -39,7 +39,7 @@ StatusCode Event::buyTicketFromReservation(const Reservation& reservation, const unsigned resInd = reservations.findIndex(reservation); if (resInd == reservations.get_count()) return E_ReservationDoesNotExist; - if (!reservation.checkPassword(password)) return E_WrongReservationPassword; + if (!reservation.validPassword(password)) return E_WrongReservationPassword; reservations.removeAt(resInd); tickets.insert(reservation.get_ticket()); |
