All pastes #824724 Raw Edit

Anonymous

public text v1 · immutable
#824724 ·published 2007-12-20 04:26 UTC
rendered paste body
Index: src/server/bulkobjects/pscharinventory.cpp
===================================================================
--- src/server/bulkobjects/pscharinventory.cpp	(revision 477)
+++ src/server/bulkobjects/pscharinventory.cpp	(working copy)
@@ -934,7 +934,7 @@
     // Inventory indexes start at 1.  0 is reserved for the "NULL" item.
     for (size_t i=1; i<inventory.GetSize(); i++)
     {
-        if (inventory[i].item->CanOpenLock(lock, false))
+        if (inventory[i].item->CanOpenLock(lock, !doRestrictions))
             return true;
     }
     return false;