From 193fda2d270f63c127edc5b1082ef14ad12b1175 Mon Sep 17 00:00:00 2001 From: Daniel Jones Date: Mon, 29 Jun 2020 23:14:23 +0930 Subject: further work deriving gates from Object --- Gate.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'Gate.cpp') diff --git a/Gate.cpp b/Gate.cpp index a1ed3a7..00e3d00 100644 --- a/Gate.cpp +++ b/Gate.cpp @@ -19,6 +19,7 @@ int Object::object_id_counter = 0; // initialise static object counter FIXME: do Gate::Gate(GATE_TYPE type, int x, int y, int width, int height, int loaded_id) { + set_object_type(Object::GATE); this->gate_type = type; this->input_gate1 = nullptr; this->input_gate2 = nullptr; -- cgit v1.2.3