forked from mtcontrib/factions
Prepared power and maxpower for model migration
This commit is contained in:
parent
19940d92ee
commit
7137f09b4c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user