From f22c96e5034f08d49cdb7fe1d719a46565f9a0a8 Mon Sep 17 00:00:00 2001 From: Mike Hoffert Date: Sat, 19 Jul 2014 09:15:53 -0600 Subject: [PATCH] Start ep now an argument of max-ep Syntax is `` --- source/glest_game/types/unit_type.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/glest_game/types/unit_type.cpp b/source/glest_game/types/unit_type.cpp index 5eac779e..47f4d903 100644 --- a/source/glest_game/types/unit_type.cpp +++ b/source/glest_game/types/unit_type.cpp @@ -249,10 +249,9 @@ void UnitType::loaddd(int id,const string &dir, const TechTree *techTree, addItemToVault(&(this->epRegeneration),this->epRegeneration); //startEp - - if(parametersNode->hasChild("start-ep")) { + if(parametersNode->getChild("max-ep")->hasAttribute("start-value")) { //checkItemInVault(&(this->startEp),this->startEp); - startEp= parametersNode->getChild("start-ep")->getAttribute("value")->getIntValue(); + startEp= parametersNode->getChild("max-ep")->getAttribute("start-value")->getIntValue(); } addItemToVault(&(this->startEp),this->startEp);