summaryrefslogtreecommitdiff
path: root/src/game-server/itemmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game-server/itemmanager.cpp')
-rw-r--r--src/game-server/itemmanager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game-server/itemmanager.cpp b/src/game-server/itemmanager.cpp
index ecf9555a..3e7c673a 100644
--- a/src/game-server/itemmanager.cpp
+++ b/src/game-server/itemmanager.cpp
@@ -269,10 +269,10 @@ void ItemManager::reload()
unsigned int duration = XML::getProperty(effectnode,
"duration",
0);
- std::pair<unsigned int, unsigned int> info = attributeManager->getInfoFromTag(tag);
+ ModifierLocation location = attributeManager->getLocation(tag);
double value = XML::getFloatProperty(effectnode, "value", 0.0);
- item->addEffect(new ItemEffectAttrMod(info.first,
- info.second,
+ item->addEffect(new ItemEffectAttrMod(location.attributeId,
+ location.layer,
value, id,
duration),
triggerTypes.first, triggerTypes.second);