collinsmith / riiablo

Diablo II remade using Java and LibGDX
http://riiablo.com
Apache License 2.0
872 stars 99 forks source link

Disposing DT1 should remove tiles from DT1s library #68

Open collinsmith opened 4 years ago

collinsmith commented 4 years ago

DT1 instances need to maintain a reference to any DT1s they belong to so that when they are disposed of, they can also trigger the DT1s to remove their tiles from the cache. This hasn't come up yet, but it may in the future when Zone instances are created and disposed of and a DT1 leaks.