mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
Fix cap bug in ZoneDatabase::GetDecayTimes()
This commit is contained in:
+1
-4
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user