Fixed bad names
This commit is contained in:
parent
86954aed47
commit
fbde1e69a3
|
@ -613,15 +613,15 @@ void UnitType::loaddd(int id,const string &dir, const TechTree *techTree,
|
||||||
resource.setAmountValue(0);
|
resource.setAmountValue(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(resourceNode->hasAttribute("amount-percentage")) {
|
if(resourceNode->hasAttribute("faction-amount-percentage")) {
|
||||||
resource.setAmountPercentage(resourceNode->getAttribute("amount-percentage")->getIntValue());
|
resource.setAmountPercentage(resourceNode->getAttribute("faction-amount-percentage")->getIntValue());
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
resource.setAmountPercentage(0);
|
resource.setAmountPercentage(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(resourceNode->hasAttribute("faction-loss-value")) {
|
if(resourceNode->hasAttribute("loss-value")) {
|
||||||
resource.setLossValue(resourceNode->getAttribute("faction-loss-value")->getIntValue());
|
resource.setLossValue(resourceNode->getAttribute("loss-value")->getIntValue());
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
resource.setLossValue(0);
|
resource.setLossValue(0);
|
||||||
|
|
Loading…
Reference in New Issue