Skip to content

Commit

Permalink
fix build error.
Browse files Browse the repository at this point in the history
  • Loading branch information
elsongabriel committed Jul 2, 2024
1 parent a984f32 commit 4e2e537
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lua/callbacks/events_callbacks.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class EventsCallbacks {
template <typename CallbackFunc, typename... Args>
ReturnValue checkCallbackWithReturnValue(EventCallback_t eventType, CallbackFunc callbackFunc, Args &&... args) {
ReturnValue res = RETURNVALUE_NOERROR;
for (const auto &callback : getCallbacksByType(eventType)) {
for (const auto &[name, callback] : getCallbacksByType(eventType)) {
auto argsCopy = std::make_tuple(args...);
if (callback && callback->isLoadedCallback()) {
ReturnValue callbackResult = std::apply(
Expand Down

0 comments on commit 4e2e537

Please sign in to comment.