aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/operate.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/operate.cc b/src/operate.cc
index dd75066..0808bc8 100644
--- a/src/operate.cc
+++ b/src/operate.cc
@@ -2734,7 +2734,7 @@ void DeleteAtCreature(uint32 CreatureID, ObjectType Type, int Amount, uint32 Val
if(Type.getFlag(CUMULATIVE)){
int ObjAmount = (int)Obj.getAttribute(AMOUNT);
- if(ObjAmount < Amount){
+ if(ObjAmount <= Amount){
Delete(Obj, -1);
Amount -= ObjAmount;
}else{