• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Build problem :/

nemezis

# Lazybones #
Joined
Jan 1, 2011
Messages
152
Reaction score
5
Location
Hole in Poland
Code:
items.cpp: In member function 'void Items::parseItemNode(xmlNode*, uint32_t)':
items.cpp:1634: error: 'struct std::_List_iterator<int>' has no member named 'condition'
items.cpp:1639: error: 'class Condition' has no member named 'addDamage'
items.cpp:1645: error: 'class Condition' has no member named 'getTotalDamage'
make[1]: *** [items.o] Error 1

Lines 1624-1648
Code:
							if(tmpStrValue == "damage")
							{
								if(readXMLInteger(fieldAttributesNode, "value", intValue))
								{
									damage = -intValue;
									if(start > 0)
									{
										std::list<int32_t> damageList;
										ConditionDamage::generateDamageList(damage, start, damageList);
										for(std::list<int32_t>::iterator it = damageList.begin(); it != damageList.end(); ++it)
											it.condition->addDamage(1, ticks, -*it);

										start = 0;
									}
									else
										it.condition->addDamage(count, ticks, damage);
								}
							}
						}

						it.condition->setParam(CONDITIONPARAM_FIELD, true);
						if(it.condition->getTotalDamage() > 0)
							it.condition->setParam(CONDITIONPARAM_FORCEUPDATE, true);
					}
				}

Where could be the problem?
Rev 3886.
 
Back
Top