Core/Misc: Replace time(NULL) with GameTime::GetGameTime()

(ported commit: 12701cb0c6c45eb105ad449eb9a56e76d84d691e)
This commit is contained in:
Ovahlord committed 2019-07-08 12:19:19 +02:00
1 parent ba38f74816
commit 5fe3a1f7f9
68 files changed
+335 -259

No files matched your search

+2 -1
View File
@@ -18,6 +18,7 @@
#include "GuildMgr.h"
#include "AchievementMgr.h"
#include "DatabaseEnv.h"
#include "GameTime.h"
#include "Guild.h"
#include "Log.h"
#include "ObjectMgr.h"
@@ -587,7 +588,7 @@ void GuildMgr::ResetTimes(bool week)
// Delete too old old guild member
PreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_DEL_OLD_OLD_GUILD_MEMBER);
stmt->setUInt32(0, uint32(time(nullptr) - time_t(30 * DAY)));
stmt->setUInt32(0, uint32(GameTime::GetGameTime() - time_t(30 * DAY)));
CharacterDatabase.Execute(stmt);
// Reset week reputation for old guild member