Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Venue / Venue.cpp
diff options
context:
space:
mode:
1 files changed, 4 insertions, 0 deletions
-rw-r--r--src/Venue/Venue.cpp4
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);
}