From 16a3dd2b7e07caf69dc0d78f036eb8c44c9260da Mon Sep 17 00:00:00 2001 From: Henrique Santiago Date: Wed, 8 Aug 2012 11:24:59 -0300 Subject: [PATCH] Remove ; and little fix to MiniWindow --- modules/corelib/ui/uiminiwindow.lua | 12 +++++++----- src/otclient/item.cpp | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/modules/corelib/ui/uiminiwindow.lua b/modules/corelib/ui/uiminiwindow.lua index b5b9326b..f7a8601c 100644 --- a/modules/corelib/ui/uiminiwindow.lua +++ b/modules/corelib/ui/uiminiwindow.lua @@ -110,11 +110,13 @@ function UIMiniWindow:onSetup() self.miniLoaded = true - if oldParent and oldParent:getClassName() == 'UIMiniWindowContainer' then - oldParent:order() - end - if newParent and newParent:getClassName() == 'UIMiniWindowContainer' and newParent ~= oldParent then - newParent:order() + if self.save then + if oldParent and oldParent:getClassName() == 'UIMiniWindowContainer' then + oldParent:order() + end + if newParent and newParent:getClassName() == 'UIMiniWindowContainer' and newParent ~= oldParent then + newParent:order() + end end end diff --git a/src/otclient/item.cpp b/src/otclient/item.cpp index 5ed6b35c..b6ce4699 100644 --- a/src/otclient/item.cpp +++ b/src/otclient/item.cpp @@ -276,7 +276,7 @@ void Item::serializeItem(const BinaryWriteTreePtr& out) out->writeU8(ATTR_COUNT); out->writeU8(getCount()); - out->writeU8(ATTR_CHARGES);; + out->writeU8(ATTR_CHARGES); out->writeU16(getCountOrSubType()); Position dest = m_attribs.get(ATTR_TELE_DEST);