Core/Dungeon Finder: Fix a crash in Join when there are no dungeons available for that group (And probably other random crashes that appear when having DF enabled)

Core/Dungeon Finder: Tab2spaces + remove trailing spaces in LFG* files.

Notes to self:
- assign NULL to a pointer parameter will not change the pointer value outside the scope of the function
- deleting a const_iterator can lead to mem corruption

--HG--
branch : trunk
This commit is contained in:
Spp
2010-12-13 21:31:55 +01:00
parent 865f35a637
commit 89a33bbf61
4 changed files with 41 additions and 38 deletions

View File

@@ -28,8 +28,8 @@ class Group;
class LFGScripts: public GroupScript, PlayerScript
{
public:
LFGScripts();
public:
LFGScripts();
// Group Hooks
void OnAddMember(Group* group, uint64 guid);
@@ -37,8 +37,8 @@ class LFGScripts: public GroupScript, PlayerScript
void OnDisband(Group* group);
void OnChangeLeader(Group* group, uint64 newLeaderGuid, uint64 oldLeaderGuid);
void OnInviteMember(Group* group, uint64 guid);
// Player Hooks
// Player Hooks
void OnLevelChanged(Player* player, uint8 newLevel);
void OnLogout(Player* player);
void OnLogin(Player* player);