Fix RCS1179

This commit is contained in:
RoosterDragon
2023-10-28 20:16:00 +01:00
committed by Gustas
parent fcfee31972
commit 258de7a6fd
2 changed files with 5 additions and 5 deletions

View File

@@ -159,11 +159,10 @@ namespace OpenRA.Mods.Common.Scripting
Action WrapOnPlayComplete(LuaFunction onPlayComplete)
{
Action onComplete;
if (onPlayComplete != null)
{
var f = (LuaFunction)onPlayComplete.CopyReference();
onComplete = () =>
return () =>
{
try
{
@@ -177,9 +176,7 @@ namespace OpenRA.Mods.Common.Scripting
};
}
else
onComplete = () => { };
return onComplete;
return () => { };
}
}
}