mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-01 23:35:41 +00:00
Simplify fix for event argument bug
This commit is contained in:
parent
71efe30345
commit
3555cec5fe
@ -138,8 +138,7 @@ public:
|
|||||||
for (const auto& Event : mLuaEvents.at(EventName)) {
|
for (const auto& Event : mLuaEvents.at(EventName)) {
|
||||||
for (const auto& Function : Event.second) {
|
for (const auto& Function : Event.second) {
|
||||||
if (Event.first != IgnoreId) {
|
if (Event.first != IgnoreId) {
|
||||||
std::vector<TLuaArgTypes> ArgumentsCopy = Arguments;
|
Results.push_back(EnqueueFunctionCall(Event.first, Function, Arguments));
|
||||||
Results.push_back(EnqueueFunctionCall(Event.first, Function, ArgumentsCopy));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user