From 0e0389752a0912614737e5c059b5cd4719ef9cf2 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Tue, 10 Mar 2015 19:42:04 -0400 Subject: Const correctness! Also created savefile and refactored collisions a bit. --- src/entity.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/entity.cpp') 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 c) components.push_back(c); } -void Entity::send(Game& game, Message& msg) +void Entity::send(Game& game, const Message& msg) { for (auto component : components) { -- cgit 1.4.1