tool and ToolItem apply item aliases
authorKahrl <kahrl@gmx.net>
Sun, 22 Jan 2012 14:13:00 +0000 (15:13 +0100)
committerPerttu Ahola <celeron55@gmail.com>
Sun, 22 Jan 2012 15:31:20 +0000 (17:31 +0200)
src/inventory.cpp

index 66101b831b3de0c4b19edf288beb8e2ef2a2c265..056cf552d681da8c0059e9fc83024943a43049d4 100644 (file)
@@ -251,6 +251,7 @@ void ItemStack::deSerialize(std::istream &is, IItemDefManager *itemdef)
                count = 1;
                // Then read wear
                fnd.skip_over(" ");
+               name = itemdef->getAlias(name);
                wear = stoi(trim(fnd.next("")));
        }
        else