mirror of
https://github.com/SantaSpeen/BeamMP-Server.git
synced 2026-02-16 08:20:40 +00:00
Simplify fix for event argument bug
This commit is contained in:
@@ -138,8 +138,7 @@ public:
|
||||
for (const auto& Event : mLuaEvents.at(EventName)) {
|
||||
for (const auto& Function : Event.second) {
|
||||
if (Event.first != IgnoreId) {
|
||||
std::vector<TLuaArgTypes> ArgumentsCopy = Arguments;
|
||||
Results.push_back(EnqueueFunctionCall(Event.first, Function, ArgumentsCopy));
|
||||
Results.push_back(EnqueueFunctionCall(Event.first, Function, Arguments));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user