Scripts/Commands: Fixed build with -DSCRIPTS=0

This commit is contained in:
Shauren committed 2014-09-14 16:54:21 +02:00
1 parent a0e50ea35f
commit 2a1a294383
21 files changed
+85 -85

No files matched your search

+2 -2
View File
@@ -1306,11 +1306,11 @@ public:
if (!creature || !receiver_str || !text)
return false;
uint64 receiver_guid = atol(receiver_str);
ObjectGuid receiver_guid(HIGHGUID_PLAYER, uint32(atol(receiver_str)));
// check online security
Player* receiver = ObjectAccessor::FindPlayer(receiver_guid);
if (handler->HasLowerSecurity(receiver, 0))
if (handler->HasLowerSecurity(receiver, ObjectGuid::Empty))
return false;
creature->MonsterWhisper(text, receiver);