Use Null-Propagation Operator
This commit is contained in:
@@ -350,8 +350,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
player.PlayThen(() =>
|
||||
{
|
||||
StopVideo(player);
|
||||
if (onComplete != null)
|
||||
onComplete();
|
||||
onComplete?.Invoke();
|
||||
});
|
||||
|
||||
// Mute other distracting sounds
|
||||
|
||||
Reference in New Issue
Block a user