All pastes #994915 Raw Edit

Mine

public text v1 · immutable
#994915 ·published 2008-04-23 19:09 UTC
rendered paste body
Index: src/game/Item.cpp
===================================================================
--- src/game/Item.cpp	(revision 5687)
+++ src/game/Item.cpp	(working copy)
@@ -620,7 +620,7 @@
 {
     if(IsSoulBound())
         return false;
-    if(IsBag() && !((Bag const*)this)->IsEmpty())
+    if(IsBag() && (Player::IsBagPos(GetPos()) || !((Bag const*)this)->IsEmpty()) )
         return false;
 
     if(Player* owner = GetOwner())