Skip to content

Commit

Permalink
[Bug Fix] Fix Spawns Not Parsing Quest on Zone Bootup (#4149)
Browse files Browse the repository at this point in the history
* Update zone.cpp

* Fix

---------

Co-authored-by: Natedog2012 <[email protected]>
  • Loading branch information
Kinglykrab and Natedog2012 authored Mar 5, 2024
1 parent 1be9b2c commit 74f1eac
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions zone/quest_parser_collection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ int QuestParserCollection::EventBotGlobal(

QuestInterface* QuestParserCollection::GetQIByNPCQuest(uint32 npc_id, std::string& filename)
{
if (!zone || !zone->IsLoaded()) {
if (!zone) {
return nullptr;
}

Expand Down Expand Up @@ -871,7 +871,7 @@ QuestInterface* QuestParserCollection::GetQIByNPCQuest(uint32 npc_id, std::strin

QuestInterface* QuestParserCollection::GetQIByPlayerQuest(std::string& filename)
{
if (!zone || !zone->IsLoaded()) {
if (!zone) {
return nullptr;
}

Expand Down Expand Up @@ -922,7 +922,7 @@ QuestInterface* QuestParserCollection::GetQIByPlayerQuest(std::string& filename)

QuestInterface* QuestParserCollection::GetQIByGlobalNPCQuest(std::string& filename)
{
if (!zone || !zone->IsLoaded()) {
if (!zone) {
return nullptr;
}

Expand All @@ -947,7 +947,7 @@ QuestInterface* QuestParserCollection::GetQIByGlobalNPCQuest(std::string& filena

QuestInterface* QuestParserCollection::GetQIByGlobalPlayerQuest(std::string& filename)
{
if (!zone || !zone->IsLoaded()) {
if (!zone) {
return nullptr;
}

Expand All @@ -971,7 +971,7 @@ QuestInterface* QuestParserCollection::GetQIByGlobalPlayerQuest(std::string& fil

QuestInterface* QuestParserCollection::GetQIBySpellQuest(uint32 spell_id, std::string& filename)
{
if (!zone || !zone->IsLoaded()) {
if (!zone) {
return nullptr;
}

Expand Down Expand Up @@ -1023,7 +1023,7 @@ QuestInterface* QuestParserCollection::GetQIBySpellQuest(uint32 spell_id, std::s

QuestInterface* QuestParserCollection::GetQIByItemQuest(std::string item_script, std::string& filename)
{
if (!zone || !zone->IsLoaded()) {
if (!zone) {
return nullptr;
}

Expand Down Expand Up @@ -1075,7 +1075,7 @@ QuestInterface* QuestParserCollection::GetQIByItemQuest(std::string item_script,

QuestInterface* QuestParserCollection::GetQIByEncounterQuest(std::string encounter_name, std::string& filename)
{
if (!zone || !zone->IsLoaded()) {
if (!zone) {
return nullptr;
}

Expand Down Expand Up @@ -1125,7 +1125,7 @@ QuestInterface* QuestParserCollection::GetQIByEncounterQuest(std::string encount

QuestInterface* QuestParserCollection::GetQIByBotQuest(std::string& filename)
{
if (!zone || !zone->IsLoaded()) {
if (!zone) {
return nullptr;
}

Expand Down Expand Up @@ -1176,7 +1176,7 @@ QuestInterface* QuestParserCollection::GetQIByBotQuest(std::string& filename)

QuestInterface* QuestParserCollection::GetQIByGlobalBotQuest(std::string& filename)
{
if (!zone || !zone->IsLoaded()) {
if (!zone) {
return nullptr;
}

Expand Down

0 comments on commit 74f1eac

Please sign in to comment.