All pastes #1724808 Raw Edit

Stuff

public text v1 · immutable
#1724808 ·published 2009-12-23 13:30 UTC
rendered paste body
Index: src/server/slotmanager.cpp
===================================================================
--- src/server/slotmanager.cpp	(revision 5028)
+++ src/server/slotmanager.cpp	(working copy)
@@ -628,6 +628,12 @@
             uint32_t srcparent = 0;
             if (item)
             {
+                if(item->IsInUse())
+                {
+                    psserver->SendSystemError(fromClient->GetClientNum(), "You cannot move an item being used.");
+                    return;
+                }
+                
                 // TODO: This is probably buggy when you hit max stack count...
                 if (item->CheckStackableWith(itemProposed, false))
                 {