Fix cap bug in ZoneDatabase::GetDecayTimes()

This commit is contained in:
Michael Cook (mackal) 2018-11-18 16:02:59 -05:00
parent 8302f7cc26
commit 2c0714b5d8

View File

@ -1875,10 +1875,7 @@ bool ZoneDatabase::GetDecayTimes(npcDecayTimes_Struct* npcCorpseDecayTimes) {
npcCorpseDecayTimes[index].minlvl = atoi(sep.arg[1]);
npcCorpseDecayTimes[index].maxlvl = atoi(sep.arg[2]);
if (atoi(row[1]) > 7200)
npcCorpseDecayTimes[index].seconds = 720;
else
npcCorpseDecayTimes[index].seconds = atoi(row[1]);
npcCorpseDecayTimes[index].seconds = std::min(7200, atoi(row[1]));
}
return true;