Browse Source

add missing override

opengl-renderer-broken
Martin Dørum 4 years ago
parent
commit
39431584f2
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      libswan/include/swan/Entity.h

+ 1
- 1
libswan/include/swan/Entity.h View File

@@ -42,7 +42,7 @@ public:
PhysicsEntity(Vec2 size, float mass):
body_(size, mass) {}

virtual std::optional<BoundingBox> getBounds() { return body_.getBounds(); }
virtual std::optional<BoundingBox> getBounds() override { return body_.getBounds(); }

virtual void update(const Context &ctx, float dt) override {
body_.friction();

Loading…
Cancel
Save