Root nodes join through ModRoot.AddDeferred, so a reload that unloads the mod first never hands Godot a freed node

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
cthangoverandClaude Opus 5.5 committed 2026-10-24 11:29:16 +02:00
1 parent e0bc983f39
commit 55caaf020d
6 files changed
+6 -6

No files matched your search

@@ -19,7 +19,7 @@ namespace Mods.NewGameTest
queued = true;
GameLogger.Log("TEST", "NewGameTest: activating");
(Godot.Engine.GetMainLoop() as SceneTree)?.Root?.CallDeferred("add_child", new NewGameTestDriverNode());
ModRoot.AddDeferred(new NewGameTestDriverNode());
}
}
}