Skip to content

Commit c79a472

Browse files
committed
fix(events): TriggerEvent
1 parent 4e8241f commit c79a472

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/loader/scripting/engine/events.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ std::vector<std::any> TriggerEventInternal(std::string eventName, EValue eventPa
4242
if (L->GetKind() == ContextKinds::JavaScript) payload = (const char*)JS_GetUint8Array((JSContext*)L->GetState(), &len, eventPayload.pushJS());
4343
else payload = eventPayload.cast<std::string>();
4444

45-
returnValues.push_back((int)g_pluginManager->ExecuteEvent(FetchPluginName(L), eventName, eventPayload, &event));
45+
returnValues.push_back((int)g_pluginManager->ExecuteEvent(FetchPluginName(L), eventName, payload, &event));
4646
returnValues.push_back(event);
4747

4848
return returnValues;

0 commit comments

Comments
 (0)