<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -44,10 +44,10 @@ local function handler()
 	if CursorHasItem() then ClearCursor() end
 
 	if next(items) then
-		for i=1,(#items/2) do EquipItemByName(table.remove(items), table.remove(items)) end
+		while next(items) do EquipItemByName(table.remove(items), table.remove(items)) end
 		butt:SetNormalTexture(&quot;Interface\\Addons\\Nudist\\clothed&quot;)
 		butt:SetPushedTexture(&quot;Interface\\Addons\\Nudist\\nude&quot;)
-	elseif not InCombatLockdown()
+	elseif not InCombatLockdown() then
 		butt:SetNormalTexture(&quot;Interface\\Addons\\Nudist\\nude&quot;)
 		butt:SetPushedTexture(&quot;Interface\\Addons\\Nudist\\clothed&quot;)
 		GetEmpties()
@@ -57,8 +57,8 @@ local function handler()
 
 			local item = GetInventoryItemLink(&quot;player&quot;, i)
 			if item then
-				table.insert(items, item)
 				table.insert(items, i)
+				table.insert(items, item)
 				PickupInventoryItem(i)
 				if bag == 0 then PutItemInBackpack() else PutItemInBag(bag + 19) end
 			end</diff>
      <filename>Nudist.lua</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>7431c8392740a459577d2f4bd8fe737ba107cbe7</id>
    </parent>
  </parents>
  <author>
    <name>tekkub</name>
    <email>tekkub@gmail.com</email>
  </author>
  <url>http://github.com/tekkub/nudist/commit/2e6d97be03542140eb014eebbe2b3ef502c7bd91</url>
  <id>2e6d97be03542140eb014eebbe2b3ef502c7bd91</id>
  <committed-date>2009-09-12T19:43:40-07:00</committed-date>
  <authored-date>2009-09-12T19:43:40-07:00</authored-date>
  <message>Helps to actually test on a live server</message>
  <tree>a6ef2e4abf28d213d7c0d26d4b05b6501dc27045</tree>
  <committer>
    <name>tekkub</name>
    <email>tekkub@gmail.com</email>
  </committer>
</commit>
