diff options
Diffstat (limited to 'src/server')
| -rw-r--r-- | src/server/game/DataStores/DB2Stores.cpp | 17 | ||||
| -rw-r--r-- | src/server/game/Entities/Conversation/Conversation.cpp | 2 | ||||
| -rw-r--r-- | src/server/game/Handlers/GuildFinderHandler.cpp | 3 |
3 files changed, 10 insertions, 12 deletions
diff --git a/src/server/game/DataStores/DB2Stores.cpp b/src/server/game/DataStores/DB2Stores.cpp index a15543e9cb6..d13400c5494 100644 --- a/src/server/game/DataStores/DB2Stores.cpp +++ b/src/server/game/DataStores/DB2Stores.cpp @@ -2589,21 +2589,16 @@ static bool CheckUiMapAssignmentStatus(float x, float y, float z, int32 mapId, i if (areaId && uiMapAssignment->AreaID) { int8 areaPriority = 0; - if (areaId) + while (areaId != uiMapAssignment->AreaID) { - while (areaId != uiMapAssignment->AreaID) + if (AreaTableEntry const* areaEntry = sAreaTableStore.LookupEntry(areaId)) { - if (AreaTableEntry const* areaEntry = sAreaTableStore.LookupEntry(areaId)) - { - areaId = areaEntry->ParentAreaID; - ++areaPriority; - } - else - return false; + areaId = areaEntry->ParentAreaID; + ++areaPriority; } + else + return false; } - else - return false; status->AreaPriority = areaPriority; } diff --git a/src/server/game/Entities/Conversation/Conversation.cpp b/src/server/game/Entities/Conversation/Conversation.cpp index f087c43873f..1f898fb1700 100644 --- a/src/server/game/Entities/Conversation/Conversation.cpp +++ b/src/server/game/Entities/Conversation/Conversation.cpp @@ -25,7 +25,7 @@ #include "Unit.h" #include "UpdateData.h" -Conversation::Conversation() : WorldObject(false), _duration(0) +Conversation::Conversation() : WorldObject(false), _duration(0), _textureKitId(0) { m_objectType |= TYPEMASK_CONVERSATION; m_objectTypeId = TYPEID_CONVERSATION; diff --git a/src/server/game/Handlers/GuildFinderHandler.cpp b/src/server/game/Handlers/GuildFinderHandler.cpp index 6ef8e956fa9..47170cb5d4a 100644 --- a/src/server/game/Handlers/GuildFinderHandler.cpp +++ b/src/server/game/Handlers/GuildFinderHandler.cpp @@ -225,6 +225,9 @@ void WorldSession::HandleGuildFinderSetGuildPost(WorldPackets::GuildFinder::LFGu return; Guild* guild = sGuildMgr->GetGuildById(player->GetGuildId()); + if (!guild) + return; + // Player must be guild master if (guild->GetLeaderGUID() != player->GetGUID()) return; |
