summary refs log tree commit diff stats
path: root/src/entity.cpp
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2015-03-10 19:42:04 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2015-03-10 19:42:04 -0400
commit0e0389752a0912614737e5c059b5cd4719ef9cf2 (patch)
treefc39e676bd819ee973f27fc40150a7874d2f8503 /src/entity.cpp
parent7f0e8c7ef70c62814c274f110367db92f01cbb26 (diff)
downloadtherapy-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.cpp2
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
8void Entity::send(Game& game, Message& msg) 8void Entity::send(Game& game, const Message& msg)
9{ 9{
10 for (auto component : components) 10 for (auto component : components)
11 { 11 {