mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-08-15 14:43:32 -07:00
Without entities, don't require a simulation
Since 067a7abc72 a simulation is required when loading a non generated
map.
This breaks the serializationtest as it doesn't pass the simulation to
the secondary map-reader.
This commit is contained in:
parent
0ad6d36049
commit
e79f8ea327
1 changed files with 1 additions and 1 deletions
|
|
@ -1253,7 +1253,6 @@ int CMapReader::ReadXML()
|
|||
// progressive
|
||||
PS::Loader::Task CMapReader::ReadXMLEntities()
|
||||
{
|
||||
ENSURE(pSimulation2);
|
||||
if (m_SkipEntities)
|
||||
co_return 0;
|
||||
|
||||
|
|
@ -1265,6 +1264,7 @@ PS::Loader::Task CMapReader::ReadXMLEntities()
|
|||
{
|
||||
return node.GetChildNodes().size();
|
||||
})};
|
||||
ENSURE(pSimulation2 || totalJobs == 0);
|
||||
std::size_t completedJobs{0};
|
||||
for (XMBElement node : m_XmlReader->nodes)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue