Skip to content

Commit

Permalink
Revert "Scripts/Commands: Fix a potential crash when summoning player…
Browse files Browse the repository at this point in the history
…s that are just logging on." - the check was unnecessary (already done in extractPlayerTarget).

This reverts commit 05cdcdb.
  • Loading branch information
Treeston committed Jul 17, 2017
1 parent 05cdcdb commit e0194e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/server/scripts/Commands/cs_group.cpp
Expand Up @@ -115,7 +115,7 @@ class group_commandscript : public CommandScript

std::string plNameLink = handler->GetNameLink(player);

if (!player->IsInWorld() || player->IsBeingTeleported())
if (player->IsBeingTeleported())
{
handler->PSendSysMessage(LANG_IS_TELEPORTED, plNameLink.c_str());
continue;
Expand Down
2 changes: 1 addition & 1 deletion src/server/scripts/Commands/cs_misc.cpp
Expand Up @@ -513,7 +513,7 @@ class misc_commandscript : public CommandScript
if (handler->HasLowerSecurity(target, ObjectGuid::Empty))
return false;

if (!target->IsInWorld() || target->IsBeingTeleported())
if (target->IsBeingTeleported())
{
handler->PSendSysMessage(LANG_IS_TELEPORTED, nameLink.c_str());
handler->SetSentErrorMessage(true);
Expand Down

0 comments on commit e0194e4

Please sign in to comment.