Website Summary Files Commits Branches @commit @diff @stats
path: root / src / EventSystem / Event.cpp
diff options
context:
space:
mode:
Commit28b95485909cd2ada3547ca200dc769ff37edf3a (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-05 21:04:04 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-05 21:04:04 +0300
Files6958a1db7ef7922621e1343635978836e40766ca /src/EventSystem/Event.cpp
FMI-OOP-P1_TicketSystem-28b95485909cd2ada3547ca200dc769ff37edf3a.tar
FMI-OOP-P1_TicketSystem-28b95485909cd2ada3547ca200dc769ff37edf3a.tar.gz
FMI-OOP-P1_TicketSystem-28b95485909cd2ada3547ca200dc769ff37edf3a.zip
Parent9c6cead2ab906624317b1b701f91c2468983b17b (diff)
Autocommit at 05.05.2022 @ 21:04
1 files changed, 1 insertions, 1 deletions
-rw-r--r--src/EventSystem/Event.cpp2
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());