Update module/documents/scene.mjs

Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com>
This commit is contained in:
WBHarry 2026-01-12 00:03:18 +01:00 committed by GitHub
parent 503aa712e6
commit 553431de1a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -58,8 +58,8 @@ export default class DhScene extends Scene {
const system = new game.system.api.data.scenes.DHScene(this.flags.daggerheart);
// Clear this scene from all environments that aren't deleted
for (const environement of system.sceneEnvironments) {
environement?.system?.scenes?.delete(this);
for (const environment of system.sceneEnvironments) {
environment?.system?.scenes?.delete(this);
}
}
}