Core/Spells: Fix a crash on checking school immunity added to unit manually (not by aura)

This commit is contained in:
QAston
2011-07-28 23:41:29 +02:00
parent 045dec19fa
commit 07badd7385
9 changed files with 485 additions and 168 deletions
+1 -1
View File
@@ -893,7 +893,7 @@ int WorldSocket::HandleAuthSession (WorldPacket& recvPacket)
//! Negative mutetime indicates amount of seconds to be muted effective on next login - which is now.
if (mutetime < 0)
{
mutetime = time(NULL) + llabs(mutetime);
mutetime = time(NULL) + -mutetime;
LoginDatabase.PExecute("UPDATE account SET mutetime = " SI64FMTD " WHERE id = '%u'", mutetime, id);
}