mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[9407] If instance have reset time not let rate make it less 1 day.
This also fix crash at instance reset data loading at server startup.
This commit is contained in:
parent
34c51c7bf6
commit
2a5ce2198c
2 changed files with 3 additions and 1 deletions
|
|
@ -476,6 +476,8 @@ void InstanceSaveManager::LoadResetTimes()
|
|||
|
||||
// the reset_delay must be at least one day
|
||||
uint32 period = uint32(mapDiff->resetTime / DAY * sWorld.getConfig(CONFIG_FLOAT_RATE_INSTANCE_RESET_TIME)) * DAY;
|
||||
if (period < DAY)
|
||||
period = DAY;
|
||||
|
||||
time_t t = GetResetTimeFor(mapid,difficulty);
|
||||
if(!t)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "9406"
|
||||
#define REVISION_NR "9407"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue