mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-27 16:37:17 +00:00
Remove another unnecessary this == null check
This commit is contained in:
@@ -190,10 +190,6 @@ bool PersistentTimer::Clear(Database *db) {
|
|||||||
|
|
||||||
/* This function checks if the timer triggered */
|
/* This function checks if the timer triggered */
|
||||||
bool PersistentTimer::Expired(Database *db, bool iReset) {
|
bool PersistentTimer::Expired(Database *db, bool iReset) {
|
||||||
if (this == nullptr) {
|
|
||||||
LogError("Null timer during ->Check()!?\n");
|
|
||||||
return(true);
|
|
||||||
}
|
|
||||||
uint32 current_time = get_current_time();
|
uint32 current_time = get_current_time();
|
||||||
if (current_time-start_time >= timer_time) {
|
if (current_time-start_time >= timer_time) {
|
||||||
if (enabled && iReset) {
|
if (enabled && iReset) {
|
||||||
|
|||||||
Reference in New Issue
Block a user