Add OnAnyProduction and OnSold lua triggers

This commit is contained in:
abcdefg30
2019-03-11 19:07:54 +01:00
committed by reaperrr
parent c096fbde96
commit 2db2148310
2 changed files with 16 additions and 1 deletions

View File

@@ -421,7 +421,8 @@ namespace OpenRA.Mods.Common.Scripting
{
using (var a = producee.ToLuaValue(f.Context))
using (var b = produced.ToLuaValue(f.Context))
f.Function.Call(a, b).Dispose();
using (var c = productionType.ToLuaValue(f.Context))
f.Function.Call(a, b, c).Dispose();
}
catch (Exception ex)
{