comparison Items.cpp @ 1685:2a309997c42f

Player::StealFromShop started cleanup, fixing a few errors caused by not commiting everything
author Grumpy7
date Sat, 21 Sep 2013 12:38:43 +0200
parents 3c451fd02fcf
children 8251e59fd7c1
comparison
equal deleted inserted replaced
1684:f84b8b2a875c 1685:2a309997c42f
2386 } 2386 }
2387 } 2387 }
2388 2388
2389 bool ItemGen::IsRegularEnchanmentForAttribute( CHARACTER_ATTRIBUTE_TYPE attrToGet ) 2389 bool ItemGen::IsRegularEnchanmentForAttribute( CHARACTER_ATTRIBUTE_TYPE attrToGet )
2390 { 2390 {
2391 auto bonusList = ItemGen::specialBonusMap.find(this->uSpecEnchantmentType); 2391 auto bonusList = ItemGen::specialBonusMap.find(this->uEnchantmentType);
2392 if (bonusList == ItemGen::specialBonusMap.end()) 2392 if (bonusList == ItemGen::specialBonusMap.end())
2393 { 2393 {
2394 return false; 2394 return false;
2395 } 2395 }
2396 std::map<CHARACTER_ATTRIBUTE_TYPE, CEnchantment*>* currList = bonusList->second; 2396 std::map<CHARACTER_ATTRIBUTE_TYPE, CEnchantment*>* currList = bonusList->second;