fix: prevent overflow/OOM in Raw chunk parsing and fix global scene ID in BuildSceneGraph

Agent-Logs-Url: https://github.com/DarkflameUniverse/DarkflameServer/sessions/5cf247c9-7028-4f94-9ab9-8dfd8e6101fa

Co-authored-by: aronwk-aaron <26027722+aronwk-aaron@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-31 08:47:34 +00:00
committed by GitHub
parent 64c3319487
commit 6ea6ca4ac2
2 changed files with 42 additions and 9 deletions

View File

@@ -406,7 +406,7 @@ void dZoneManager::BuildSceneGraph() {
}
// Scene 0 (global scene) is always loaded and adjacent to all other scenes
LWOSCENEID globalScene = LWOSCENEID(m_ZoneID.GetMapID(), 0);
LWOSCENEID globalScene = LWOSCENEID(0, 0);
for (auto& [sceneID, adjacentScenes] : m_SceneAdjacencyList) {
if (sceneID != globalScene) {
// Add global scene to this scene's adjacency list if not already present