Browse Source

added missing single include guard

Kajetan Johannes Hammerle 2 năm trước cách đây
mục cha
commit
8167f17660
1 tập tin đã thay đổi với 6 bổ sung1 xóa
  1. 6 1
      ecs/Components.h

+ 6 - 1
ecs/Components.h

@@ -1,3 +1,6 @@
+#ifndef COMPONENTS_H
+#define COMPONENTS_H
+
 #include "utils/HashMap.h"
 #include "utils/List.h"
 #include "utils/Types.h"
@@ -123,4 +126,6 @@ public:
     EntityIteratorAdapter<const Components, const T> entities() const {
         return {*this};
     }
-};
+};
+
+#endif