<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -377,6 +377,16 @@ bool Item::LoadFromDB(uint32 guid, uint64 owner_guid, QueryResult *result)
     if(!proto)
         return false;
 
+    // update max durability (and durability) if need
+    if(proto-&gt;MaxDurability!= GetUInt32Value(ITEM_FIELD_MAXDURABILITY))
+    {
+        SetUInt32Value(ITEM_FIELD_MAXDURABILITY,proto-&gt;MaxDurability);
+        if(GetUInt32Value(ITEM_FIELD_DURABILITY) &gt; proto-&gt;MaxDurability)
+            SetUInt32Value(ITEM_FIELD_DURABILITY,proto-&gt;MaxDurability);
+
+        need_save = true;
+    }
+
     // recalculate suffix factor
     if(GetItemRandomPropertyId() &lt; 0)
     {</diff>
      <filename>src/game/Item.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,4 @@
 #ifndef __REVISION_NR_H__
 #define __REVISION_NR_H__
- #define REVISION_NR &quot;8093&quot;
+ #define REVISION_NR &quot;8094&quot;
 #endif // __REVISION_NR_H__</diff>
      <filename>src/shared/revision_nr.h</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>0fbff9dd1d8ab181327a3ce00a56c52a0e9b2e3e</id>
    </parent>
  </parents>
  <author>
    <name>VladimirMangos</name>
    <email>vladimir@getmangos.com</email>
  </author>
  <url>http://github.com/mangos/mangos/commit/312ed4f803aca7974b65e59c06a814f2e694342d</url>
  <id>312ed4f803aca7974b65e59c06a814f2e694342d</id>
  <committed-date>2009-06-29T03:52:23-07:00</committed-date>
  <authored-date>2009-06-29T03:48:42-07:00</authored-date>
  <message>[8094] Overwrite max durability for item at item loading from prototype.</message>
  <tree>8d90eabae61f566b74f3a72b7d8c75292a29d497</tree>
  <committer>
    <name>VladimirMangos</name>
    <email>vladimir@getmangos.com</email>
  </committer>
</commit>
