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)); } } }