*Fix a bug about arena point autodistributiontime.
--HG-- branch : trunk
This commit is contained in:
1 parent
a0e40a39f5
commit
f0ca8d152f
1 file changed
+1
-1
@@ -1613,7 +1613,7 @@ void BattleGroundMgr::InitAutomaticArenaPointDistribution()
|
||||
if(!result)
|
||||
{
|
||||
sLog.outDebug("Battleground: Next arena point distribution time not found in SavedVariables, reseting it now.");
|
||||
m_NextAutoDistributionTime = sWorld.GetGameTime() + BATTLEGROUND_ARENA_POINT_DISTRIBUTION_DAY * sWorld.getConfig(CONFIG_ARENA_AUTO_DISTRIBUTE_INTERVAL_DAYS);
|
||||
m_NextAutoDistributionTime = time(NULL) + BATTLEGROUND_ARENA_POINT_DISTRIBUTION_DAY * sWorld.getConfig(CONFIG_ARENA_AUTO_DISTRIBUTE_INTERVAL_DAYS);
|
||||
CharacterDatabase.PExecute("INSERT INTO saved_variables (NextArenaPointDistributionTime) VALUES ('"I64FMTD"')", m_NextAutoDistributionTime);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user