Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

Commit 7eeedab

Browse files
committed
Update Scene unload clear datas
1 parent a65ef44 commit 7eeedab

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

module/sources/scenes_manager/scene/Scene.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,12 @@ void sw::Scene::unload()
162162
m_entities.clear();
163163
m_managersLayers.clear();
164164
m_entitiesToDelete.clear();
165+
m_managersToDelete.clear();
165166
eventManager.clearEvents();
167+
m_gameObjectId = 0;
166168
m_isLoad = false;
169+
m_tree.clear();
170+
m_lut.clear();
167171

168172
sw::Speech::Info(sw::Log::info370_Success(FUNCTION, name));
169173
}

0 commit comments

Comments
 (0)