aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMachiavelli <none@none>2010-12-15 15:00:52 +0100
committerMachiavelli <none@none>2010-12-15 15:00:52 +0100
commitad13cd89b5f2fc7265fdce084fc8175f9b9f1bb5 (patch)
tree60138a5d8643fe647f59237562cc53646e89487a /src
parent382fef1958b252586cf9a9fa388b4dfe6bddefb0 (diff)
Core/Items: Fix item duration saving (and loading at a later stage).
--HG-- branch : trunk
Diffstat (limited to 'src')
-rwxr-xr-xsrc/server/game/Entities/Item/Item.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Entities/Item/Item.cpp b/src/server/game/Entities/Item/Item.cpp
index 81d70cd5783..9ca1d84f63c 100755
--- a/src/server/game/Entities/Item/Item.cpp
+++ b/src/server/game/Entities/Item/Item.cpp
@@ -441,7 +441,7 @@ bool Item::LoadFromDB(uint32 guid, uint64 owner_guid, Field* fields, uint32 entr
if (need_save) // normal item changed state set not work at loading
{
PreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_UPDATE_ITEM_INSTANCE_ON_LOAD);
- stmt->setUInt32(0, GetUInt32Value(ITEM_FIELD_DURABILITY));
+ stmt->setUInt32(0, GetUInt32Value(ITEM_FIELD_DURATION));
stmt->setUInt32(1, GetUInt32Value(ITEM_FIELD_FLAGS));
stmt->setUInt32(2, GetUInt32Value(ITEM_FIELD_DURABILITY));
stmt->setUInt32(3, guid);