From 65499bb801ce663a2bc45a3508fa32246090d0e7 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 5 May 2022 13:43:28 +0300 Subject: Autocommit at 05.05.2022 @ 13:43 --- src/Venue/Venue.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Venue/Venue.cpp') diff --git a/src/Venue/Venue.cpp b/src/Venue/Venue.cpp index e33af61..50fc9c1 100644 --- a/src/Venue/Venue.cpp +++ b/src/Venue/Venue.cpp @@ -7,6 +7,10 @@ Venue::Venue(const Hall* halls, unsigned hallCount, const EventSystem& es) { this->es = es; } +bool Venue::hallExists(unsigned hallIndex) const { + return hallIndex < halls.get_count(); +} + bool Venue::hallExists(const Hall& hall) const { return this->halls.contain(hall); } -- cgit v1.3.1-26-gb76a