From 0101618d89f9a503aabd0610c8b8d38b47b9939f Mon Sep 17 00:00:00 2001 From: Exynox Date: Mon, 25 Mar 2024 07:01:22 +0200 Subject: [PATCH] Fixed sectree not found while loading guild buildings --- src/game/src/building.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/game/src/building.cpp b/src/game/src/building.cpp index 426fa8e..509f518 100644 --- a/src/game/src/building.cpp +++ b/src/game/src/building.cpp @@ -815,6 +815,11 @@ CLand * CManager::FindLandByGuild(DWORD GID) bool CManager::LoadObject(TObject * pTable, bool isBoot) // from DB { + // Skip loading if the target map is not available on this core + // Source: https://metin2.dev/topic/23614-solving-a-very-old-problem-what-most-people-ignore/#comment-163073 + if (!map_allow_find(pTable->lMapIndex)) + return false; + CLand * pkLand = FindLand(pTable->dwLandID); if (!pkLand)