diff options
author | visagalis <none@none> | 2008-11-14 17:50:48 -0600 |
---|---|---|
committer | visagalis <none@none> | 2008-11-14 17:50:48 -0600 |
commit | 3085e66b966fec0012decf2543c7e32064b47102 (patch) | |
tree | 3aa057fa15ce224932340fa6870d41f0b9422033 /src/game/MiscHandler.cpp | |
parent | 053b671cb5481dacc85fe192ceea937462361948 (diff) |
[svn] *** Source: MaNGOS ***
* Fixed english spelling in src/game/WorldSocket.h/cpp. Author: Derex
* [240_world.sql] Create new command .senditems and remove from moderator level command .sendmail possibility send items. Author: Vladimir
* Added new command: .sendmoney player "subject" "message" money - Sends a mail with money to a player. Author: fredi
* Correctly apply taken damage debufs/bonuses in cases non-physical melee damage. Author: Frankir
* Fix a crash in add friend/ignore callback. (check if player still logged in). Author: Hunuza
* Better args checking in .sendmoney command. Author: Vladimir
--HG--
branch : trunk
Diffstat (limited to 'src/game/MiscHandler.cpp')
-rw-r--r-- | src/game/MiscHandler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/MiscHandler.cpp b/src/game/MiscHandler.cpp index 7fc4b59a9ee..4c1129e6a98 100644 --- a/src/game/MiscHandler.cpp +++ b/src/game/MiscHandler.cpp @@ -499,7 +499,7 @@ void WorldSession::HandleAddFriendOpcodeCallBack(QueryResult *result, uint32 acc delete result; WorldSession * session = sWorld.FindSession(accountId); - if(!session) + if(!session || !session->GetPlayer()) return; FriendsResult friendResult = FRIEND_NOT_FOUND; @@ -582,7 +582,7 @@ void WorldSession::HandleAddIgnoreOpcodeCallBack(QueryResult *result, uint32 acc delete result; WorldSession * session = sWorld.FindSession(accountId); - if(!session) + if(!session || !session->GetPlayer()) return; FriendsResult ignoreResult = FRIEND_IGNORE_NOT_FOUND; |