From 0d9f2d217265e826a4843b3873824216344f1b24 Mon Sep 17 00:00:00 2001
From: Ben Longbons <b.r.longbons@gmail.com>
Date: Mon, 13 Oct 2014 13:19:43 -0700
Subject: Restore missing check to let double-handed weapons work

---
 src/map/pc.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/map/pc.cpp b/src/map/pc.cpp
index ac78672..3c0fce5 100644
--- a/src/map/pc.cpp
+++ b/src/map/pc.cpp
@@ -4405,7 +4405,9 @@ int pc_equipitem(dumb_ptr<map_session_data> sd, IOff0 n, EPOS)
         {
             if (sd->inventory_data[n]->type == ItemType::WEAPON)
             {
-                assert(0 && "unreachable - offhand weapons are not supported");
+                sd->status.shield = ItemNameId();
+                if (sd->status.inventory[n].equip == EPOS::SHIELD)
+                    assert(0 && "unreachable - offhand weapons are not supported");
             }
             else if (sd->inventory_data[n]->type == ItemType::ARMOR)
             {
-- 
cgit v1.2.3-70-g09d2