mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-19 13:28:25 +00:00
Test
This commit is contained in:
+10
-1
@@ -5627,7 +5627,7 @@ bool Merc::Unsuspend(bool setMaxStats) {
|
||||
if(!mercOwner->IsGrouped())
|
||||
{
|
||||
Group *g = new Group(mercOwner);
|
||||
if(AddMercToGroup(this, g))
|
||||
if(g && AddMercToGroup(this, g))
|
||||
{
|
||||
entity_list.AddGroup(g);
|
||||
database.SetGroupLeaderName(g->GetID(), mercOwner->GetName());
|
||||
@@ -5638,6 +5638,15 @@ bool Merc::Unsuspend(bool setMaxStats) {
|
||||
|
||||
loaded = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
if(MERC_DEBUG > 0)
|
||||
mercOwner->Message(7, "Mercenary failed to join the group - Suspending");
|
||||
|
||||
Suspend();
|
||||
safe_delete(g);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else if (AddMercToGroup(this, mercOwner->GetGroup()))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user