Merge pull request #7269 from abcdefg30/general-polish

Some general polish
This commit is contained in:
Oliver Brakmann
2015-01-04 16:54:37 +01:00
6 changed files with 20 additions and 11 deletions

View File

@@ -150,8 +150,9 @@ namespace OpenRA.Traits
public void Dispose()
{
foreach (var a in currentActors)
onActorExited(a);
if (onActorExited != null)
foreach (var a in currentActors)
onActorExited(a);
}
}