Remove ; and little fix to MiniWindow

This commit is contained in:
Henrique Santiago 2012-08-08 11:24:59 -03:00
parent 85b52fbdfd
commit 16a3dd2b7e
2 changed files with 8 additions and 6 deletions

View File

@ -110,11 +110,13 @@ function UIMiniWindow:onSetup()
self.miniLoaded = true self.miniLoaded = true
if oldParent and oldParent:getClassName() == 'UIMiniWindowContainer' then if self.save then
oldParent:order() if oldParent and oldParent:getClassName() == 'UIMiniWindowContainer' then
end oldParent:order()
if newParent and newParent:getClassName() == 'UIMiniWindowContainer' and newParent ~= oldParent then end
newParent:order() if newParent and newParent:getClassName() == 'UIMiniWindowContainer' and newParent ~= oldParent then
newParent:order()
end
end end
end end

View File

@ -276,7 +276,7 @@ void Item::serializeItem(const BinaryWriteTreePtr& out)
out->writeU8(ATTR_COUNT); out->writeU8(ATTR_COUNT);
out->writeU8(getCount()); out->writeU8(getCount());
out->writeU8(ATTR_CHARGES);; out->writeU8(ATTR_CHARGES);
out->writeU16(getCountOrSubType()); out->writeU16(getCountOrSubType());
Position dest = m_attribs.get<Position>(ATTR_TELE_DEST); Position dest = m_attribs.get<Position>(ATTR_TELE_DEST);