From f26b359ae5ad218c6615dd9ee70ecb64c9f77f3b Mon Sep 17 00:00:00 2001 From: otfallen Date: Mon, 8 Oct 2012 01:03:33 +0000 Subject: [PATCH] The smallest change of 2012 --- src/otclient/thingtypemanager.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/otclient/thingtypemanager.cpp b/src/otclient/thingtypemanager.cpp index 0110d3e5..da0829a0 100644 --- a/src/otclient/thingtypemanager.cpp +++ b/src/otclient/thingtypemanager.cpp @@ -191,10 +191,9 @@ void ThingTypeManager::parseItemType(uint16 id, TiXmlElement* elem) itemType = ItemTypePtr(new ItemType); itemType->setServerId(serverId); addItemType(itemType); - } + } else + itemType = getItemType(serverId); - itemType = getItemType(serverId); - assert(itemType && "Internal error"); itemType->setName(elem->Attribute("name")); for(TiXmlElement* attrib = elem->FirstChildElement(); attrib; attrib = attrib->NextSiblingElement()) { std::string key = attrib->Attribute("key");