Dispose actors when tearing down the world.

This commit is contained in:
Paul Chote
2015-05-23 21:41:21 +01:00
parent 585a43fd8f
commit 4ff309811f
3 changed files with 24 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ using OpenRA.Traits;
namespace OpenRA
{
public class Actor : IScriptBindable, IScriptNotifyBind, ILuaTableBinding, ILuaEqualityBinding, ILuaToStringBinding, IEquatable<Actor>
public sealed class Actor : IScriptBindable, IScriptNotifyBind, ILuaTableBinding, ILuaEqualityBinding, ILuaToStringBinding, IEquatable<Actor>, IDisposable
{
public readonly ActorInfo Info;