]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/itemdef.cpp
buildbot: Drop i586-mingw32msvc, add i686-w64-mingw32-posix detection
[dragonfireclient.git] / src / itemdef.cpp
index df20bdf15c7efd40249f2d89c38ef8dd9e0c3d1f..5fb1e4c470019df5a9921977d107da0973c22c6a 100644 (file)
@@ -62,6 +62,7 @@ ItemDefinition& ItemDefinition::operator=(const ItemDefinition &def)
        type = def.type;
        name = def.name;
        description = def.description;
+       short_description = def.short_description;
        inventory_image = def.inventory_image;
        inventory_overlay = def.inventory_overlay;
        wield_image = def.wield_image;
@@ -102,6 +103,7 @@ void ItemDefinition::reset()
        type = ITEM_NONE;
        name = "";
        description = "";
+       short_description = "";
        inventory_image = "";
        inventory_overlay = "";
        wield_image = "";
@@ -162,6 +164,8 @@ void ItemDefinition::serialize(std::ostream &os, u16 protocol_version) const
        writeARGB8(os, color);
        os << serializeString16(inventory_overlay);
        os << serializeString16(wield_overlay);
+
+       os << serializeString16(short_description);
 }
 
 void ItemDefinition::deSerialize(std::istream &is)
@@ -213,8 +217,9 @@ void ItemDefinition::deSerialize(std::istream &is)
 
        // If you add anything here, insert it primarily inside the try-catch
        // block to not need to increase the version.
-       //try {
-       //} catch(SerializationError &e) {};
+       try {
+               short_description = deSerializeString16(is);
+       } catch(SerializationError &e) {};
 }