Tests for saving and loading shops
- Fix shop name not being loaded from the file - Fix skills in shops not storing the skill ID
This commit is contained in:
@@ -554,7 +554,7 @@ static void readShopFromXml(ticpp::Element& data, cShop& shop) {
|
||||
}
|
||||
if(!reqs.empty())
|
||||
throw xMissingElem("special", *reqs.begin(), entry->Row(), entry->Column(), fname);
|
||||
shop.addSpecial(name, descr, icon, node, cost, amount);
|
||||
shop.addSpecial(title, descr, icon, node, cost, amount);
|
||||
} else {
|
||||
eShopItemType itype;
|
||||
int n = 0;
|
||||
|
Reference in New Issue
Block a user