mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-16 05:11:29 +00:00
Fix cap bug in ZoneDatabase::GetDecayTimes()
This commit is contained in:
parent
8302f7cc26
commit
2c0714b5d8
@ -1875,10 +1875,7 @@ bool ZoneDatabase::GetDecayTimes(npcDecayTimes_Struct* npcCorpseDecayTimes) {
|
|||||||
npcCorpseDecayTimes[index].minlvl = atoi(sep.arg[1]);
|
npcCorpseDecayTimes[index].minlvl = atoi(sep.arg[1]);
|
||||||
npcCorpseDecayTimes[index].maxlvl = atoi(sep.arg[2]);
|
npcCorpseDecayTimes[index].maxlvl = atoi(sep.arg[2]);
|
||||||
|
|
||||||
if (atoi(row[1]) > 7200)
|
npcCorpseDecayTimes[index].seconds = std::min(7200, atoi(row[1]));
|
||||||
npcCorpseDecayTimes[index].seconds = 720;
|
|
||||||
else
|
|
||||||
npcCorpseDecayTimes[index].seconds = atoi(row[1]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user