From 7c93b1b041e8496f91ad0f2840c879cc8da984bc Mon Sep 17 00:00:00 2001 From: Federico Cecchetto Date: Tue, 26 Apr 2022 17:19:33 +0200 Subject: [PATCH] Fix #261 --- src/client/game/scripting/lua/event_handler.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/client/game/scripting/lua/event_handler.cpp b/src/client/game/scripting/lua/event_handler.cpp index d433fd18..b0f8f876 100644 --- a/src/client/game/scripting/lua/event_handler.cpp +++ b/src/client/game/scripting/lua/event_handler.cpp @@ -35,12 +35,6 @@ namespace scripting::lua for (auto i = tasks.begin(); i != tasks.end();) { - if (i->is_deleted) - { - i = tasks.erase(i); - continue; - } - if (i->event != event.name || i->entity != event.entity) { ++i;