From 3555cec5fe47a67dc4af06a167e43da626fff59a Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Mon, 13 Dec 2021 13:48:18 +0100 Subject: [PATCH] Simplify fix for event argument bug --- include/TLuaEngine.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/TLuaEngine.h b/include/TLuaEngine.h index cc9ee1f..1673c61 100644 --- a/include/TLuaEngine.h +++ b/include/TLuaEngine.h @@ -138,8 +138,7 @@ public: for (const auto& Event : mLuaEvents.at(EventName)) { for (const auto& Function : Event.second) { if (Event.first != IgnoreId) { - std::vector ArgumentsCopy = Arguments; - Results.push_back(EnqueueFunctionCall(Event.first, Function, ArgumentsCopy)); + Results.push_back(EnqueueFunctionCall(Event.first, Function, Arguments)); } } }