Prepared power and maxpower for model migration

This commit is contained in:
shamoanjac 2016-08-15 15:00:57 +02:00
parent 19940d92ee
commit 7137f09b4c

View File

@ -533,6 +533,9 @@ function factions.load()
end end
setmetatable(faction, factions.Faction) setmetatable(faction, factions.Faction)
-- compatiblity and later additions -- compatiblity and later additions
if not faction.maxpower or faction.maxpower == 0. then
faction.maxpower = faction.power
end
end end
file:close() file:close()
end end