From c5763ed82657be05af64389e1826da25b9cac22b Mon Sep 17 00:00:00 2001 From: MassiveAtoms Date: Sun, 30 Jun 2019 05:32:01 -0300 Subject: [PATCH] small bugfix --- Park_spot.cpp | 3 ++- headers/Park_spot.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Park_spot.cpp b/Park_spot.cpp index 5c982fc..edb30d6 100644 --- a/Park_spot.cpp +++ b/Park_spot.cpp @@ -6,7 +6,8 @@ Park_spot::Park_spot() : parked{nullptr}, id{auto_increment_db() + 1}, taken{false} { save_db(); } -Park_spot::Park_spot(Customer parked_, int id_, bool taken_) + +Park_spot::Park_spot(Customer* parked_, int id_, bool taken_) : parked{nullptr}, id{id_}, taken{taken_} // TODO: think about how init parked? diff --git a/headers/Park_spot.h b/headers/Park_spot.h index 597737d..e5dc5d7 100644 --- a/headers/Park_spot.h +++ b/headers/Park_spot.h @@ -16,6 +16,7 @@ class Park_spot { bool taken; Customer* parked; Park_spot(); + Park_spot(Customer* parked_, int id_, bool taken_); ~Park_spot(); void clock(Customer* c_customer);