From 7603ba55dd217871660c6fb2211ba8d5ecc96880 Mon Sep 17 00:00:00 2001 From: Alexander Klingenbeck Date: Sat, 27 May 2023 15:09:19 +0200 Subject: [PATCH] Fix resource cleanup --- examples/ts_game/src/resource.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/ts_game/src/resource.ts b/examples/ts_game/src/resource.ts index 8a82f81..4e01e8e 100644 --- a/examples/ts_game/src/resource.ts +++ b/examples/ts_game/src/resource.ts @@ -35,6 +35,7 @@ export const resourceUnload = (id: string) => { res.refcount-- if(res.refcount === 0){ res.unload(res.resource) + resourceList.delete(id) } } }