mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-02 19:03:28 +00:00
Fixed passing of second unit weapon to event handlers.
This commit is contained in:
parent
077958dc2a
commit
918e27f8b8
@ -1799,7 +1799,7 @@ void LuaKernel::run_event(vconfig const &cfg, game_events::queued_event const &e
|
||||
if (const config &weapon = ev.data.child("first")) {
|
||||
args.add_child("weapon", weapon);
|
||||
}
|
||||
if (const config &weapon = ev.data.child("first")) {
|
||||
if (const config &weapon = ev.data.child("second")) {
|
||||
args.add_child("second_weapon", weapon);
|
||||
}
|
||||
if (ev.loc1.valid()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user