Fixed passing of second unit weapon to event handlers.

This commit is contained in:
Guillaume Melquiond 2009-11-01 11:05:46 +00:00
parent 077958dc2a
commit 918e27f8b8

View File

@ -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()) {