This commit is contained in:
momo5502 2019-01-20 23:55:02 +01:00
parent 60d0316b7b
commit c8ad7a687e

View File

@ -94,7 +94,7 @@ namespace game
void event_handler::remove(const event_listener_handle& handle)
{
for (const auto task : this->event_listeners_)
for (const auto& task : this->event_listeners_)
{
if (task->id == handle.id)
{
@ -103,7 +103,7 @@ namespace game
}
}
for (const auto task : this->generic_event_listeners_)
for (const auto& task : this->generic_event_listeners_)
{
if (task->id == handle.id)
{