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) } } }