Fix XML
This commit is contained in:
@@ -200,7 +200,7 @@ void SceneManager::loadScene(const char* filename)
|
||||
}
|
||||
|
||||
pugi::xml_node root = doc.document_element();
|
||||
const char* scenefilename = root.child("SceneFile").attribute("filename").value();
|
||||
const char* scenefilename = root.child("LevelDescription").child("SceneFile").attribute("filename").value();
|
||||
|
||||
m_sceneName = getFileNameWithoutExtension(scenefilename);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user