Skip to content

Commit

Permalink
Core: Reject zone-lining into zones where the port is set to zero
Browse files Browse the repository at this point in the history
  • Loading branch information
zach2good committed Jan 6, 2025
1 parent 28e1d58 commit 21d8b81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/map/packet_system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4090,7 +4090,7 @@ void SmallPacket0x05E(map_session_data_t* const PSession, CCharEntity* const PCh
{
// Ensure the destination exists
CZone* PDestination = zoneutils::GetZone(PZoneLine->m_toZone);
if (PDestination && PDestination->GetIP() == 0)
if (PDestination && (PDestination->GetIP() == 0 || PDestination->GetPort() == 0))
{
ShowDebug("SmallPacket0x5E: Zone %u closed to chars", PZoneLine->m_toZone);

Expand Down

0 comments on commit 21d8b81

Please sign in to comment.