summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/map/pc.cpp4
1 files changed, 3 insertions, 1 deletions
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)
{