Removing needless entity pointer storing in BaseComponent

This commit is contained in:
2026-01-28 14:02:28 +02:00
parent 12796fa31b
commit 7000aa712b
2 changed files with 0 additions and 17 deletions

View File

@@ -13,7 +13,6 @@
#include <concepts>
#include <format>
#include <typeindex>
#include <utility>
#include "../Containers/DualkeyMap.hpp"
#include "../Types.hpp"
@@ -26,10 +25,8 @@ class World;
struct BaseComponent {
public:
virtual ~BaseComponent() = default;
const Entity &GetOwner();
private:
const Entity *owner;
friend World;
};