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
1 changed files with 3 additions and 0 deletions

View File

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