Skip to content

Commit 69e4888

Browse files
committed
fix memory leak
1 parent c77d0f2 commit 69e4888

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/scripts/world/ChunkManager.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ class ChunkManager {
3838

3939
removeChunk (cellId) {
4040
if (this.chunks.get(cellId) !== undefined) {
41+
this.chunks.delete(cellId)
4142
this.cellMesh.get(cellId).geometry.dispose()
4243
this.game.scene.remove(this.cellMesh.get(cellId))
4344
this.cellMesh.delete(cellId)

0 commit comments

Comments
 (0)