aboutsummaryrefslogtreecommitdiff
path: root/src/operate.cc
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2025-08-29 15:57:42 -0300
committerfusion32 <marcopuzziello@gmail.com>2025-08-29 15:57:42 -0300
commit28ba2e02ed6fd32f93a4088a40f7656e6902440b (patch)
treea77abcf451b362fb159aa5fd7971601789486fc0 /src/operate.cc
parent78dab31a66cbc2a330aa2bb790f1696f24f4326a (diff)
downloadgame-28ba2e02ed6fd32f93a4088a40f7656e6902440b.tar.gz
game-28ba2e02ed6fd32f93a4088a40f7656e6902440b.zip
fix a problem with deleting CUMULATIVE items from creatures
Diffstat (limited to 'src/operate.cc')
-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{