From 7137f09b4c8ed1a1069e0c96d55fc1e568e738eb Mon Sep 17 00:00:00 2001 From: shamoanjac Date: Mon, 15 Aug 2016 15:00:57 +0200 Subject: [PATCH] Prepared power and maxpower for model migration --- factions.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/factions.lua b/factions.lua index 08393dd..6164370 100644 --- a/factions.lua +++ b/factions.lua @@ -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