mirror of
https://github.com/EQEmu/Server.git
synced 2026-10-09 18:53:36 +00:00
Fix cap bug in ZoneDatabase::GetDecayTimes()
This commit is contained in:
1 parent
8302f7cc26
commit
2c0714b5d8
1 file changed
+1
-4
+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