diff options
Diffstat (limited to 'src/being/playerinfo.cpp')
-rw-r--r-- | src/being/playerinfo.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/being/playerinfo.cpp b/src/being/playerinfo.cpp index 12ce1e6d3..d7652abe0 100644 --- a/src/being/playerinfo.cpp +++ b/src/being/playerinfo.cpp @@ -58,11 +58,8 @@ std::set<int> mProtectedItems; void triggerAttr(const int id, const int old) { - DepricatedEvent event(EVENT_UPDATEATTRIBUTE); - event.setInt("id", id); - event.setInt("oldValue", old); - event.setInt("newValue", mData.mAttributes.find(id)->second); - DepricatedEvent::trigger(CHANNEL_ATTRIBUTES, event); + AttributeListener::distributeEvent(id, old, + mData.mAttributes.find(id)->second); } void triggerStat(const int id, const std::string &changed, |