aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2026-05-05 21:54:32 -0300
committerfusion32 <marcopuzziello@gmail.com>2026-05-05 21:54:32 -0300
commit7beaa081de8aedd28f4c7ce717bcfbd2b09230d3 (patch)
treec37c0306e598616b615c861553645e708f72f51f /src
parenta9f70ed1f12ac451f28ae82c270c74b31bd764d6 (diff)
downloadgame-7beaa081de8aedd28f4c7ce717bcfbd2b09230d3.tar.gz
game-7beaa081de8aedd28f4c7ce717bcfbd2b09230d3.zip
fix issue with CUMULATIVE + THROW loot (#56)
Diffstat (limited to 'src')
-rw-r--r--src/crmain.cc2
-rw-r--r--src/crnonpl.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/crmain.cc b/src/crmain.cc
index af51ee2..7237698 100644
--- a/src/crmain.cc
+++ b/src/crmain.cc
@@ -2082,7 +2082,7 @@ void ProcessMonsterRaids(void){
|| ItemType.getFlag(WEAROUT)
|| ItemType.getFlag(EXPIRE)
|| ItemType.getFlag(EXPIRESTOP)){
- Item = Create(Bag, ItemType, 0);
+ Item = Create(Bag, ItemType, Amount);
}else{
Item = CreateAtCreature(Creature->ID, ItemType, Amount);
}
diff --git a/src/crnonpl.cc b/src/crnonpl.cc
index ec6af03..73a68af 100644
--- a/src/crnonpl.cc
+++ b/src/crnonpl.cc
@@ -2058,7 +2058,7 @@ TMonster::TMonster(int Race, int x, int y, int z, int Home, uint32 MasterID) :
|| ItemType.getFlag(WEAROUT)
|| ItemType.getFlag(EXPIRE)
|| ItemType.getFlag(EXPIRESTOP)){
- Item = Create(Bag, ItemType, 0);
+ Item = Create(Bag, ItemType, Amount);
}else{
Item = CreateAtCreature(this->ID, ItemType, Amount);
}