mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 14:41:28 +00:00
Remove another unnecessary this == null check
This commit is contained in:
parent
945ca1278c
commit
e6a14beb2e
@ -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) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user