mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Fix getting results from event handlers.
This commit is contained in:
@@ -159,9 +159,10 @@ int Eluna::CallOneFunction(int number_of_functions, int number_of_arguments, int
|
||||
// Stack: event_id, [arguments], [functions], event_id, [arguments]
|
||||
|
||||
ExecuteCall(number_of_arguments, number_of_results);
|
||||
--functions_top;
|
||||
// Stack: event_id, [arguments], [functions - 1], [results]
|
||||
|
||||
return functions_top + 1; // Return the location of the first result.
|
||||
return functions_top + 1; // Return the location of the first result (if any exist).
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user