Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Services / EventService.cpp
diff options
context:
space:
mode:
Commite88802edec407250e5752f1907a5790837f73d55 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-07 11:22:47 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-07 11:22:47 +0300
Filesdf2b62676140a5f422878501fea8e37f751b49d3 /src/Services/EventService.cpp
FMI-OOP-P1_TicketSystem-e88802edec407250e5752f1907a5790837f73d55.tar
FMI-OOP-P1_TicketSystem-e88802edec407250e5752f1907a5790837f73d55.tar.gz
FMI-OOP-P1_TicketSystem-e88802edec407250e5752f1907a5790837f73d55.zip
Parentfd96738eca7dc262616e73bb00d4abed7b975497 (diff)
Autocommit at 07.05.2022 @ 11:22
1 files changed, 1 insertions, 1 deletions
-rw-r--r--src/Services/EventService.cpp2
diff --git a/src/Services/EventService.cpp b/src/Services/EventService.cpp
index a1ba34e..56f513e 100644
--- a/src/Services/EventService.cpp
+++ b/src/Services/EventService.cpp
@@ -41,7 +41,7 @@ StatusCode EventService::createEvent(int hallNumber, const String& name, const D
if (hInd == hs->get_halls().get_count())
return E_HallDoesntExist;
- Event newEv(hallNumber, name, date);
+ Event newEv(hs->get_halls()[hInd], name, date);
unsigned eInd = events.findIndex(newEv);
if (eInd < events.get_count())