Fix loading empty builds

This commit is contained in:
ppoelzl
2020-10-31 02:38:22 +01:00
parent 2746598ea5
commit b3d7fb8fd2

View File

@@ -57,6 +57,11 @@ function buildMode:Init(dbFileName, buildName, buildXML, convertBuild)
self.xmlSectionList = { }
self.spectreList = { }
self.viewMode = "TREE"
self.targetVersion = liveTargetVersion
self.characterLevel = 1
self.bandit = "None"
self.pantheonMajorGod = "None"
self.pantheonMinorGod = "None"
if buildXML then
if self:LoadDB(buildXML, "Unnamed build") then
self:CloseBuild()