From fbde1e69a3b96b0015bb63080898c498d01e8951 Mon Sep 17 00:00:00 2001 From: Mike Hoffert Date: Tue, 22 Jul 2014 15:23:05 -0600 Subject: [PATCH] Fixed bad names --- source/glest_game/types/unit_type.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/glest_game/types/unit_type.cpp b/source/glest_game/types/unit_type.cpp index 4ecc8297..754070eb 100644 --- a/source/glest_game/types/unit_type.cpp +++ b/source/glest_game/types/unit_type.cpp @@ -613,15 +613,15 @@ void UnitType::loaddd(int id,const string &dir, const TechTree *techTree, resource.setAmountValue(0); } - if(resourceNode->hasAttribute("amount-percentage")) { - resource.setAmountPercentage(resourceNode->getAttribute("amount-percentage")->getIntValue()); + if(resourceNode->hasAttribute("faction-amount-percentage")) { + resource.setAmountPercentage(resourceNode->getAttribute("faction-amount-percentage")->getIntValue()); } else { resource.setAmountPercentage(0); } - if(resourceNode->hasAttribute("faction-loss-value")) { - resource.setLossValue(resourceNode->getAttribute("faction-loss-value")->getIntValue()); + if(resourceNode->hasAttribute("loss-value")) { + resource.setLossValue(resourceNode->getAttribute("loss-value")->getIntValue()); } else { resource.setLossValue(0);