Improved Level object deallocation

This commit is contained in:
Shoghi Cervantes
2014-10-19 20:45:03 +02:00
parent f2b573c32f
commit 2f8267aa1e
6 changed files with 7 additions and 3 deletions

View File

@ -121,6 +121,7 @@ abstract class Tile extends Position{
if(($level = $this->getLevel()) instanceof Level){
$level->removeTile($this);
}
$this->level = null;
}
}