diff options
author | megamage <none@none> | 2009-04-13 17:21:59 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-04-13 17:21:59 -0500 |
commit | 214307428078f937c068fb5219686e3090c97a9c (patch) | |
tree | 2febd9b6cf0a978b6cfda1bd14eb5bc6de9a1dd2 /src/game/ObjectMgr.h | |
parent | 53d37935a98bfb767b65c508bc53908817eaba24 (diff) |
[7659] Added several security checks to prevent cheating using facked packets Author: arrai
--HG--
branch : trunk
Diffstat (limited to 'src/game/ObjectMgr.h')
-rw-r--r-- | src/game/ObjectMgr.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/game/ObjectMgr.h b/src/game/ObjectMgr.h index ea73fb15715..56e1cbc2366 100644 --- a/src/game/ObjectMgr.h +++ b/src/game/ObjectMgr.h @@ -436,13 +436,7 @@ class ObjectMgr return mGameObjectForQuestSet.find(entry) != mGameObjectForQuestSet.end(); } - bool IsGuildVaultGameObject(Player *player, uint64 guid) const - { - if(GameObject *go = ObjectAccessor::GetGameObject(*player, guid)) - if(go->GetGoType() == GAMEOBJECT_TYPE_GUILD_BANK) - return true; - return false; - } + bool IsGameObjectOfTypeInRange(Player *player, uint64 guid, GameobjectTypes type) const; GossipText const* GetGossipText(uint32 Text_ID) const; |