Skip to content

Commit 0b5eaf2

Browse files
authored
fix telenpc after latest changes
closes #148
1 parent c2b2eac commit 0b5eaf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/game/AI/ScriptedAI/sc_npc_teleport.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ bool TELE::IsAllowedToTeleport(Player * const player) const
165165
return player->GetReputationRank(m_catvalue.data0) >= (int32)m_catvalue.data1;
166166

167167
case FLAG_PLAYER:
168-
return player->GetGUID() == m_catvalue.data0;
168+
return player->GetGUID().GetCounter() == m_catvalue.data0;
169169

170170
default: TC_LOG_ERROR("misc", "Invalid flag (category: %u). Important problem...", GetCatID()); return false;
171171
}

0 commit comments

Comments
 (0)