All pastes #1801625 Raw Edit

Something

public text v1 · immutable
#1801625 ·published 2010-02-18 15:13 UTC
rendered paste body
Index: src/server/bulkobjects/pscharinventory.cpp
===================================================================
--- src/server/bulkobjects/pscharinventory.cpp	(revision 5444)
+++ src/server/bulkobjects/pscharinventory.cpp	(working copy)
@@ -423,8 +423,9 @@
         }
 
         // If moving inside the same container, allow it
-        if (item->GetContainerID() == parentItem->GetUID())
-            return true;
+        // if (item->GetContainerID() == parentItem->GetUID())
+        //    return true;
+        // allowing this without any checking is not safe if the size of it's content or the container changed
 
      // check if the item fit in the container
         if(doRestrictions &&