diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-10 19:42:04 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-10 19:42:04 -0400 |
commit | 0e0389752a0912614737e5c059b5cd4719ef9cf2 (patch) | |
tree | fc39e676bd819ee973f27fc40150a7874d2f8503 /src/entity.cpp | |
parent | 7f0e8c7ef70c62814c274f110367db92f01cbb26 (diff) | |
download | therapy-0e0389752a0912614737e5c059b5cd4719ef9cf2.tar.gz therapy-0e0389752a0912614737e5c059b5cd4719ef9cf2.tar.bz2 therapy-0e0389752a0912614737e5c059b5cd4719ef9cf2.zip |
Const correctness!
Also created savefile and refactored collisions a bit.
Diffstat (limited to 'src/entity.cpp')
-rw-r--r-- | src/entity.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/entity.cpp b/src/entity.cpp index 950969e..38ddffe 100644 --- a/src/entity.cpp +++ b/src/entity.cpp | |||
@@ -5,7 +5,7 @@ void Entity::addComponent(std::shared_ptr<Component> c) | |||
5 | components.push_back(c); | 5 | components.push_back(c); |
6 | } | 6 | } |
7 | 7 | ||
8 | void Entity::send(Game& game, Message& msg) | 8 | void Entity::send(Game& game, const Message& msg) |
9 | { | 9 | { |
10 | for (auto component : components) | 10 | for (auto component : components) |
11 | { | 11 | { |