diff options
| author | fusion32 <marcopuzziello@gmail.com> | 2025-08-29 15:57:42 -0300 |
|---|---|---|
| committer | fusion32 <marcopuzziello@gmail.com> | 2025-08-29 15:57:42 -0300 |
| commit | 28ba2e02ed6fd32f93a4088a40f7656e6902440b (patch) | |
| tree | a77abcf451b362fb159aa5fd7971601789486fc0 /src/operate.cc | |
| parent | 78dab31a66cbc2a330aa2bb790f1696f24f4326a (diff) | |
| download | game-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.cc | 2 |
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{ |
