Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 66b362c

Browse files
committed
Made empty areas get saved when saving game, so scenes with empty areas don't get screwed up if you try to load them
1 parent c44d395 commit 66b362c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Entities/Scene.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1465,8 +1465,7 @@ int Scene::Save(Writer &writer) const {
14651465
for (std::list<Area>::const_iterator aItr = m_AreaList.begin(); aItr != m_AreaList.end(); ++aItr)
14661466
{
14671467
// Only write the area if it has any boxes/area at all
1468-
if (!(*aItr).HasNoArea())
1469-
{
1468+
if (doFullGameSave || !(*aItr).HasNoArea()) {
14701469
writer.NewProperty("AddArea");
14711470
writer << *aItr;
14721471
}

0 commit comments

Comments
 (0)