Require explicit INotifyActorDisposing
This commit is contained in:
@@ -32,6 +32,7 @@ namespace OpenRA.Mods.D2k.Traits
|
||||
|
||||
TerrainSpriteLayer render;
|
||||
Theater theater;
|
||||
bool disposed;
|
||||
|
||||
public BuildableTerrainLayer(Actor self, BuildableTerrainLayerInfo info)
|
||||
{
|
||||
@@ -75,8 +76,7 @@ namespace OpenRA.Mods.D2k.Traits
|
||||
render.Draw(wr.Viewport);
|
||||
}
|
||||
|
||||
bool disposed;
|
||||
public void Disposing(Actor self)
|
||||
void INotifyActorDisposing.Disposing(Actor self)
|
||||
{
|
||||
if (disposed)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user