aboutsummaryrefslogtreecommitdiff
path: root/src/game/GlobalEvents.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/GlobalEvents.cpp')
-rw-r--r--src/game/GlobalEvents.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/GlobalEvents.cpp b/src/game/GlobalEvents.cpp
index 9f72e96936c..300527aad73 100644
--- a/src/game/GlobalEvents.cpp
+++ b/src/game/GlobalEvents.cpp
@@ -75,7 +75,7 @@ static void CorpsesErase(bool bones,uint32 delay)
{
///- Get the list of eligible corpses/bones to be removed
//No SQL injection (uint32 and enum)
- CharacterDatabase.AsyncPQuery(&CorpsesEraseCallBack, bones, "SELECT guid,position_x,position_y,map,player FROM corpse WHERE UNIX_TIMESTAMP()-time > '%u' AND corpse_type %s '0'", delay, (bones ? "=" : "<>"));
+ CharacterDatabase.AsyncPQuery(&CorpsesEraseCallBack, bones, "SELECT guid,position_x,position_y,map,player FROM corpse WHERE time < (UNIX_TIMESTAMP()+'%u') AND corpse_type %s '0'", delay, (bones ? "=" : "<>"));
}
/// not thread guarded variant for call from other thread