Fix loop
This commit is contained in:
parent
60d0316b7b
commit
c8ad7a687e
@ -94,7 +94,7 @@ namespace game
|
|||||||
|
|
||||||
void event_handler::remove(const event_listener_handle& handle)
|
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)
|
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)
|
if (task->id == handle.id)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user